Skip to content

Commit ff9394c

Browse files
committed
[test] ElasticsearchIntegrationTest#getContext() shortcut has been removed
Due to #10656 Closes #84.
1 parent 6752e87 commit ff9394c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/java/org/elasticsearch/repositories/azure/AzureSnapshotRestoreITest.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
package org.elasticsearch.repositories.azure;
2121

2222

23+
import com.carrotsearch.randomizedtesting.RandomizedTest;
2324
import com.microsoft.azure.storage.StorageException;
2425
import org.elasticsearch.action.admin.cluster.repositories.put.PutRepositoryResponse;
2526
import org.elasticsearch.action.admin.cluster.snapshots.create.CreateSnapshotResponse;
@@ -68,7 +69,7 @@ private String getRepositoryPath() {
6869
}
6970

7071
private static String getContainerName() {
71-
String testName = "snapshot-itest-".concat(getContext().getRunnerSeedAsString().toLowerCase());
72+
String testName = "snapshot-itest-".concat(RandomizedTest.getContext().getRunnerSeedAsString().toLowerCase());
7273
return testName.contains(" ") ? Strings.split(testName, " ")[0] : testName;
7374
}
7475

0 commit comments

Comments
 (0)