Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
Fully Compatible
-
ALL
-
Repl 2021-02-08
-
0
Description
The test code may have an unowned reference to the OplogFetcherMock. If the mock is destroyed while the test code is enqueuing a batch (e.g. because the batch is invalid), the test will crash. We should delay destruction of the mock until the call is finished.
Making sure the unowned reference remains valid between calls is up to the test code itself, however.