Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There were Mockito.verify calls accepting timeouts, which on some machines would run out before the condition was triggered. Solution here is to explicitly wait for the condition before and just verify afterwards. Problem is that the way the test is set up there's a race between the populator and verifier because an IndexProxy is marked as failed (in flip) before actually calling IndexPopulator#close(boolean), so the verify call still has a timeout, although now the time between those two conditions should be microseconds.
- Loading branch information
Showing
1 changed file
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters