bereng commented on a change in pull request #1082:
URL: https://github.com/apache/cassandra/pull/1082#discussion_r659557049



##########
File path: 
test/unit/org/apache/cassandra/transport/ClientResourceLimitsTest.java
##########
@@ -215,9 +215,9 @@ private void backPressureTest(Runnable limitLifter, 
Consumer<ClientResourceLimit
             // When the client attempts to execute the second query, the 
backpressure
             // mechanism should report the client connection is paused
             assertTrue(started.await(5, TimeUnit.SECONDS));
-            spinAssertEquals("Timed out after waiting 5 seconds for paused " +
+            spinAssertEquals("Timed out after waiting 10 seconds for paused " +
                              "connections metric to increment due to 
backpressure",
-                             before + 1, pausedConnections::getValue, 5, 
TimeUnit.SECONDS);
+                             true, () -> pausedConnections.getValue() >= 
before + 1, 10, TimeUnit.SECONDS);

Review comment:
       +1




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to