You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by ad...@apache.org on 2021/09/24 10:48:33 UTC

[cassandra] branch cassandra-3.0 updated: Fix flaky ViewTest#testTruncateWhileBuilding

This is an automated email from the ASF dual-hosted git repository.

adelapena pushed a commit to branch cassandra-3.0
in repository https://gitbox.apache.org/repos/asf/cassandra.git


The following commit(s) were added to refs/heads/cassandra-3.0 by this push:
     new af85e7a  Fix flaky ViewTest#testTruncateWhileBuilding
af85e7a is described below

commit af85e7ad49beec3c6831e000a44802c0dac1afa5
Author: Andrés de la Peña <a....@gmail.com>
AuthorDate: Fri Sep 24 11:42:07 2021 +0100

    Fix flaky ViewTest#testTruncateWhileBuilding
    
    patch by Andrés de la Peña; reviewed by Berenguer Blasi for CASSANDRA-16972
---
 test/unit/org/apache/cassandra/cql3/ViewTest.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/test/unit/org/apache/cassandra/cql3/ViewTest.java b/test/unit/org/apache/cassandra/cql3/ViewTest.java
index 9349662..6050110 100644
--- a/test/unit/org/apache/cassandra/cql3/ViewTest.java
+++ b/test/unit/org/apache/cassandra/cql3/ViewTest.java
@@ -1483,8 +1483,7 @@ public class ViewTest extends CQLTester
         assertRows(execute("SELECT * FROM mv"));
 
         // check that the view builder finishes and that the view is still empty after that
-        Util.spinAssertEquals(0, ViewTest::runningCompactions, 60);
-        assertTrue(SystemKeyspace.isViewBuilt(KEYSPACE, "mv"));
+        Util.spinAssertEquals(true, () -> SystemKeyspace.isViewBuilt(KEYSPACE, "mv"), 60);
         waitForViewMutations();
         assertRows(execute("SELECT * FROM mv"));
     }

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org