Skip to content

Commit 2b4aaab

Browse files
committed
Unmuted and fixed test.
Multiple invocations are expected. see #48519
1 parent 0394e74 commit 2b4aaab

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libs/grok/src/test/java/org/elasticsearch/grok/MatcherWatchdogTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939

4040
public class MatcherWatchdogTests extends ESTestCase {
4141

42-
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/48519")
4342
public void testInterrupt() throws Exception {
4443
AtomicBoolean run = new AtomicBoolean(true); // to avoid a lingering thread when test has completed
4544
MatcherWatchdog watchdog = MatcherWatchdog.newInstance(10, 100, System::currentTimeMillis, (delay, command) -> {
@@ -63,7 +62,7 @@ public void testInterrupt() throws Exception {
6362
Thread thread = new Thread(() -> {
6463
Matcher matcher = mock(Matcher.class);
6564
watchdog.register(matcher);
66-
verify(matcher, timeout(9999).times(1)).interrupt();
65+
verify(matcher, timeout(9999).atLeastOnce()).interrupt();
6766
interrupted.set(true);
6867
while (run.get()) {} // wait here so that the size of the registry can be asserted
6968
watchdog.unregister(matcher);

0 commit comments

Comments
 (0)