Skip to content

Commit

Permalink
[Remote Store] Fixing flaky test - RemoteIndexPrimaryRelocationIT
Browse files Browse the repository at this point in the history
Signed-off-by: Dharmesh 💤 <sdharms@amazon.com>
  • Loading branch information
psychbot committed Sep 6, 2023
1 parent 9119b6d commit 845ee41
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,10 @@ public class RemoteIndexPrimaryRelocationIT extends IndexPrimaryRelocationIT {

protected Path absolutePath;

public void setup() {
absolutePath = randomRepoPath().toAbsolutePath();
}

protected Settings nodeSettings(int nodeOrdinal) {
if (absolutePath == null) {
absolutePath = randomRepoPath().toAbsolutePath();
}
return Settings.builder()
.put(super.nodeSettings(nodeOrdinal))
.put(remoteStoreClusterSettings(REPOSITORY_NAME, absolutePath))
Expand Down

0 comments on commit 845ee41

Please sign in to comment.