diff options
Diffstat (limited to 'core/src/test/java/org/elasticsearch/index/engine/ShadowEngineTests.java')
-rw-r--r-- | core/src/test/java/org/elasticsearch/index/engine/ShadowEngineTests.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/test/java/org/elasticsearch/index/engine/ShadowEngineTests.java b/core/src/test/java/org/elasticsearch/index/engine/ShadowEngineTests.java index 71ad0e1690..93a0b4345f 100644 --- a/core/src/test/java/org/elasticsearch/index/engine/ShadowEngineTests.java +++ b/core/src/test/java/org/elasticsearch/index/engine/ShadowEngineTests.java @@ -88,7 +88,7 @@ import static org.hamcrest.Matchers.nullValue; */ public class ShadowEngineTests extends ESTestCase { - protected final ShardId shardId = new ShardId(new Index("index"), 1); + protected final ShardId shardId = new ShardId("index", "_na_", 1); protected ThreadPool threadPool; @@ -181,7 +181,7 @@ public class ShadowEngineTests extends ESTestCase { protected Store createStore(final Directory directory) throws IOException { - IndexSettings indexSettings = IndexSettingsModule.newIndexSettings(shardId.index(), Settings.EMPTY); + IndexSettings indexSettings = IndexSettingsModule.newIndexSettings(shardId.getIndex(), Settings.EMPTY); final DirectoryService directoryService = new DirectoryService(shardId, indexSettings) { @Override public Directory newDirectory() throws IOException { |