Explorar el Código

TEST: use new nodes assumption in testUpdateSnapshotStatus

Using an assertion is not correct here as the list of new nodes can be
empty.
Nhat Nguyen hace 7 años
padre
commit
0edde25f09

+ 1 - 1
qa/mixed-cluster/src/test/java/org/elasticsearch/backwards/IndexingIT.java

@@ -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.