TEST: use new nodes assumption in testUpdateSnapshotStatus

Using an assertion is not correct here as the list of new nodes can be
empty.
This commit is contained in:
Nhat Nguyen 2018-02-08 13:10:40 -05:00
parent b64bf51000
commit 0edde25f09

View File

@ -233,7 +233,7 @@ public class IndexingIT extends ESRestTestCase {
public void testUpdateSnapshotStatus() throws Exception {
Nodes nodes = buildNodeAndVersions();
assertThat(nodes.getNewNodes(), not(empty()));
assumeFalse("new nodes is empty", nodes.getNewNodes().isEmpty());
logger.info("cluster discovered: {}", nodes.toString());
// Create the repository before taking the snapshot.