luwak
luwak copied to clipboard
Fix brittle test testParallelSlowLog()
Fixes #192
The test ConcurrentMatcherTestBase.testParallelSlowLog() fails when run on its own but passes if it is run along with the other tests in the class.
The test passes independently when this change is made - calling getSlowLog() directly on monitor.match(batch, factory)
without using the Matches<QueryMatch> matches
object.
Open to discuss other approaches to fix this test so that it can pass when run on its own.
Command used to run the test:
mvn test -Dtest=uk.co.flax.luwak.matchers.TestParallelMatcher#testParallelSlowLog -DfailIfNoTests=false