Fix security Netty 4 transport tests

This test suite needs to filter out the object cleaner thread too so
this commit does that.
This commit is contained in:
Jason Tedor 2018-06-12 11:31:43 -04:00
parent a36543531b
commit f738b7d9f8
No known key found for this signature in database
GPG Key ID: FA89F05560F16BC5
2 changed files with 17 additions and 1 deletions

View File

@ -0,0 +1,14 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
package org.elasticsearch.xpack.core.test;
import com.carrotsearch.randomizedtesting.annotations.ThreadLeakFilters;
import org.elasticsearch.test.ESTestCase;
@ThreadLeakFilters(filters = {ObjectCleanerThreadThreadFilter.class})
public class XPackTestCase extends ESTestCase {
}

View File

@ -22,6 +22,8 @@ import org.elasticsearch.threadpool.ThreadPool;
import org.elasticsearch.xpack.core.XPackSettings;
import org.elasticsearch.xpack.core.ssl.SSLClientAuth;
import org.elasticsearch.xpack.core.ssl.SSLService;
import org.elasticsearch.xpack.core.test.XPackIntegTestCase;
import org.elasticsearch.xpack.core.test.XPackTestCase;
import org.elasticsearch.xpack.security.transport.filter.IPFilter;
import org.junit.Before;
@ -38,7 +40,7 @@ import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.not;
import static org.mockito.Mockito.mock;
public class SecurityNetty4HttpServerTransportTests extends ESTestCase {
public class SecurityNetty4HttpServerTransportTests extends XPackTestCase {
private SSLService sslService;
private Environment env;