Skip to content

Commit 16d376e

Browse files
committed
[test] Cleanup Directory and Searcher mock code
Related to elastic/elasticsearch#10853 Closes #205.
1 parent 899e84c commit 16d376e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/org/elasticsearch/repositories/s3/AbstractS3SnapshotRestoreTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
import org.elasticsearch.snapshots.SnapshotState;
4242
import org.elasticsearch.test.ElasticsearchIntegrationTest.ClusterScope;
4343
import org.elasticsearch.test.ElasticsearchIntegrationTest.Scope;
44-
import org.elasticsearch.test.store.MockDirectoryHelper;
44+
import org.elasticsearch.test.store.MockFSDirectoryService;
4545
import org.junit.After;
4646
import org.junit.Before;
4747
import org.junit.Test;
@@ -62,8 +62,8 @@ public Settings indexSettings() {
6262
// During restore we frequently restore index to exactly the same state it was before, that might cause the same
6363
// checksum file to be written twice during restore operation
6464
return ImmutableSettings.builder().put(super.indexSettings())
65-
.put(MockDirectoryHelper.RANDOM_PREVENT_DOUBLE_WRITE, false)
66-
.put(MockDirectoryHelper.RANDOM_NO_DELETE_OPEN_FILE, false)
65+
.put(MockFSDirectoryService.RANDOM_PREVENT_DOUBLE_WRITE, false)
66+
.put(MockFSDirectoryService.RANDOM_NO_DELETE_OPEN_FILE, false)
6767
.put("cloud.enabled", true)
6868
.put("plugins." + PluginsService.LOAD_PLUGIN_FROM_CLASSPATH, true)
6969
.build();

0 commit comments

Comments
 (0)