From d22f9ac3c396f8936181c698fd14ef607bc5fccd Mon Sep 17 00:00:00 2001 From: Marc Handalian Date: Thu, 5 Jan 2023 18:25:54 -0800 Subject: [PATCH] Fix testIsSegmentReplicationAllowed_WrongEngineType. Signed-off-by: Marc Handalian --- .../index/shard/SegmentReplicationIndexShardTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/test/java/org/opensearch/index/shard/SegmentReplicationIndexShardTests.java b/server/src/test/java/org/opensearch/index/shard/SegmentReplicationIndexShardTests.java index 5a0ae7fbc466f..ed1f5a9b06dc1 100644 --- a/server/src/test/java/org/opensearch/index/shard/SegmentReplicationIndexShardTests.java +++ b/server/src/test/java/org/opensearch/index/shard/SegmentReplicationIndexShardTests.java @@ -92,7 +92,7 @@ public void testReplicationCheckpointNotNullForSegRep() throws IOException { } public void testIsSegmentReplicationAllowed_WrongEngineType() throws IOException { - final IndexShard indexShard = newStartedShard(false, settings, new InternalEngineFactory()); + final IndexShard indexShard = newShard(false, settings, new InternalEngineFactory()); assertFalse(indexShard.isSegmentReplicationAllowed()); closeShards(indexShard); }