Skip to content

Commit 19e9f10

Browse files
authored
[Test] More accurate pattern matching for testWatchdogLogging (elastic#128648) (elastic#128663)
There might be other thread temporarily not making progress and reported by the watchdog. This PR tightens up the pattern matching for the expected thread name. Resolves: elastic#128646
1 parent 4507821 commit 19e9f10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/framework/src/main/java/org/elasticsearch/transport/AbstractSimpleTransportTestCase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3360,7 +3360,7 @@ public void testWatchdogLogging() {
33603360
MockLog.assertThatLogger(
33613361
deterministicTaskQueue::runAllRunnableTasks,
33623362
ThreadWatchdog.class,
3363-
new MockLog.UnseenEventExpectation("no logging", ThreadWatchdog.class.getCanonicalName(), Level.WARN, "*")
3363+
new MockLog.UnseenEventExpectation("no logging", ThreadWatchdog.class.getCanonicalName(), Level.WARN, "*" + threadName + "*")
33643364
);
33653365
deterministicTaskQueue.advanceTime();
33663366
MockLog.assertThatLogger(

0 commit comments

Comments
 (0)