mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
[TEST] filter out keep alive timer thread name
Keep-Alive-Timer is an internal Java thread that might be started, make sure to filter it out
This commit is contained in:
parent
39a64cf4dd
commit
4af1a29057
@ -109,7 +109,8 @@ public class SimpleThreadPoolTests extends ElasticsearchIntegrationTest {
|
||||
// ignore some shared threads we know that are created within the same VM, like the shared discovery one
|
||||
// or the ones that are occasionally come up from ElasticsearchSingleNodeTest
|
||||
if (threadName.contains("[" + MulticastChannel.SHARED_CHANNEL_NAME + "]")
|
||||
|| threadName.contains("[" + ElasticsearchSingleNodeTest.nodeName() + "]")) {
|
||||
|| threadName.contains("[" + ElasticsearchSingleNodeTest.nodeName() + "]")
|
||||
|| threadName.contains("Keep-Alive-Timer")) {
|
||||
continue;
|
||||
}
|
||||
assertThat(threadName, anyOf(containsString("[" + node + "]"), containsString("[" + InternalTestCluster.TRANSPORT_CLIENT_PREFIX + node + "]")));
|
||||
|
Loading…
x
Reference in New Issue
Block a user