[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:
Shay Banon 2014-08-21 08:40:43 -07:00
parent 39a64cf4dd
commit 4af1a29057

View File

@ -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 + "]")));