Skip to content

Commit 94f4d63

Browse files
author
Andrey Ershov
committed
Remove supplier
1 parent 3bbea57 commit 94f4d63

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

server/src/test/java/org/elasticsearch/snapshots/SharedClusterSnapshotRestoreIT.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1364,13 +1364,9 @@ public void testGetSnapshotsMultipleRepos() {
13641364
}
13651365
}
13661366

1367-
Supplier<String[]> repoNames = () -> randomFrom(new String[]{"_all"},
1368-
new String[]{"repo*"}, repoList.toArray(new String[0]));
1369-
1370-
13711367
logger.info("--> get and verify snapshots");
13721368
GetSnapshotsResponse getSnapshotsResponse = client.admin().cluster()
1373-
.prepareGetSnapshots(repoNames.get())
1369+
.prepareGetSnapshots(randomFrom(new String[]{"_all"}, new String[]{"repo*"}, repoList.toArray(new String[0])))
13741370
.setSnapshots(randomFrom("_all", "*"))
13751371
.get();
13761372

@@ -1381,7 +1377,6 @@ public void testGetSnapshotsMultipleRepos() {
13811377
assertEquals(snapshotNames, snapshots.stream().map(s -> s.snapshotId().getName()).collect(Collectors.toList()));
13821378
}
13831379

1384-
13851380
logger.info("--> specify all snapshot names with ignoreUnavailable=false");
13861381
GetSnapshotsResponse getSnapshotsResponse2 = client.admin().cluster()
13871382
.prepareGetSnapshots(randomFrom("_all", "repo*"))

0 commit comments

Comments
 (0)