Ver código fonte

Fix compilation issue in RefreshListenersTests

This commit fixes a compilation issue in RefreshListenersTests that
arose from code being integrated into master, and then a large pull
request refactoring the handling of thread pools was later merged into
master.
Jason Tedor 9 anos atrás
pai
commit
acc9cea8f6

+ 2 - 1
core/src/test/java/org/elasticsearch/index/shard/RefreshListenersTests.java

@@ -54,6 +54,7 @@ import org.elasticsearch.index.translog.TranslogConfig;
 import org.elasticsearch.test.DummyShardLock;
 import org.elasticsearch.test.ESTestCase;
 import org.elasticsearch.test.IndexSettingsModule;
+import org.elasticsearch.threadpool.TestThreadPool;
 import org.elasticsearch.threadpool.ThreadPool;
 import org.junit.After;
 import org.junit.Before;
@@ -93,7 +94,7 @@ public class RefreshListenersTests extends ESTestCase {
                 );
 
         // Now setup the InternalEngine which is much more complicated because we aren't mocking anything
-        threadPool = new ThreadPool(getTestName());
+        threadPool = new TestThreadPool(getTestName());
         IndexSettings indexSettings = IndexSettingsModule.newIndexSettings("index", Settings.EMPTY);
         ShardId shardId = new ShardId(new Index("index", "_na_"), 1);
         Directory directory = newDirectory();