From 46efdd26518b78a886d4a12c3903837526868687 Mon Sep 17 00:00:00 2001 From: Aditya Kumbhar <31104730+aditya-kumbhar@users.noreply.github.com> Date: Thu, 1 Dec 2022 15:02:54 -0600 Subject: [PATCH] Fix brittle test to make it run independently --- .../uk/co/flax/luwak/matchers/ConcurrentMatcherTestBase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luwak/src/test/java/uk/co/flax/luwak/matchers/ConcurrentMatcherTestBase.java b/luwak/src/test/java/uk/co/flax/luwak/matchers/ConcurrentMatcherTestBase.java index b46c235e7..f781f1a29 100644 --- a/luwak/src/test/java/uk/co/flax/luwak/matchers/ConcurrentMatcherTestBase.java +++ b/luwak/src/test/java/uk/co/flax/luwak/matchers/ConcurrentMatcherTestBase.java @@ -112,7 +112,7 @@ public void testParallelSlowLog() throws IOException, UpdateException { Matches matches = monitor.match(batch, factory); assertThat(matches.getMatchCount("doc1")) .isEqualTo(3); - assertThat(matches.getSlowLog().toString()) + assertThat(monitor.match(batch, factory).getSlowLog().toString()) .contains("1 [") .contains("3 [") .doesNotContain("2 [");