mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-23 13:26:02 +00:00
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.
This commit is contained in:
parent
da74323141
commit
acc9cea8f6
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user