Skip to content

Commit

Permalink
Remove supplier
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Ershov committed May 23, 2019
1 parent 3bbea57 commit 94f4d63
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1364,13 +1364,9 @@ public void testGetSnapshotsMultipleRepos() {
}
}

Supplier<String[]> repoNames = () -> randomFrom(new String[]{"_all"},
new String[]{"repo*"}, repoList.toArray(new String[0]));


logger.info("--> get and verify snapshots");
GetSnapshotsResponse getSnapshotsResponse = client.admin().cluster()
.prepareGetSnapshots(repoNames.get())
.prepareGetSnapshots(randomFrom(new String[]{"_all"}, new String[]{"repo*"}, repoList.toArray(new String[0])))
.setSnapshots(randomFrom("_all", "*"))
.get();

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


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

0 comments on commit 94f4d63

Please sign in to comment.