Skip to content

Commit

Permalink
Fix flaky ProxyHandlerConnectionsTest
Browse files Browse the repository at this point in the history
patch by Ekaterina Dimitrova; reviewed by Berenguer Blasi for CASSANDRA-17301
  • Loading branch information
ekaterinadimitrova2 committed Jun 21, 2022
1 parent 15ecaae commit c848183
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
import org.apache.cassandra.utils.Pair;

import static java.util.concurrent.TimeUnit.MILLISECONDS;
import static java.util.concurrent.TimeUnit.MINUTES;
import static java.util.concurrent.TimeUnit.SECONDS;
import static org.apache.cassandra.net.ConnectionTest.SETTINGS;
import static org.apache.cassandra.net.OutboundConnectionSettings.Framing.CRC;
Expand Down Expand Up @@ -276,7 +277,7 @@ private static void waitForCondition(Supplier<Boolean> cond) throws Throwable
{
CompletableFuture.runAsync(() -> {
while (!cond.get()) {}
}).get(30, SECONDS);
}).get(1, MINUTES);
}

private static void waitForCondition(Supplier<Boolean> cond, Supplier<String> s) throws Throwable
Expand Down

0 comments on commit c848183

Please sign in to comment.