This is an automated email from the ASF dual-hosted git repository. bdeggleston pushed a commit to branch cep-15-accord in repository https://gitbox.apache.org/repos/asf/cassandra.git
The following commit(s) were added to refs/heads/cep-15-accord by this push: new 14546c96f5 ninja: fix test build 14546c96f5 is described below commit 14546c96f5d8ae504ffb287d62176044a521df3b Author: Blake Eggleston <bl...@ultrablake.com> AuthorDate: Mon Sep 16 09:56:35 2024 -0700 ninja: fix test build --- .../distributed/test/accord/AccordProgressLogTest.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/distributed/org/apache/cassandra/distributed/test/accord/AccordProgressLogTest.java b/test/distributed/org/apache/cassandra/distributed/test/accord/AccordProgressLogTest.java index 86785256c3..b69f6a6b48 100644 --- a/test/distributed/org/apache/cassandra/distributed/test/accord/AccordProgressLogTest.java +++ b/test/distributed/org/apache/cassandra/distributed/test/accord/AccordProgressLogTest.java @@ -22,8 +22,8 @@ import java.util.concurrent.Semaphore; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicLong; +import org.junit.Assert; import org.junit.Test; -import org.junit.jupiter.api.Assertions; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -75,12 +75,12 @@ public class AccordProgressLogTest extends TestBaseImpl { failed = true; } - Assertions.assertTrue(failed); + Assert.assertTrue(failed); waitForRecovery.acquire(); long timeDeltaMillis = TimeUnit.NANOSECONDS.toMillis(recoveryStartedAt.get() - coordinationStartedAt); - Assertions.assertTrue(timeDeltaMillis >= 1000, "Recovery started in " + timeDeltaMillis + "ms"); - Assertions.assertTrue(timeDeltaMillis <= 3000, "Recovery started in " + timeDeltaMillis + "ms"); + Assert.assertTrue("Recovery started in " + timeDeltaMillis + "ms", timeDeltaMillis >= 1000); + Assert.assertTrue("Recovery started in " + timeDeltaMillis + "ms", timeDeltaMillis <= 3000); } } @@ -123,8 +123,8 @@ public class AccordProgressLogTest extends TestBaseImpl logger.info("Coordinated at {}", coordinationStartedAt); logger.info("Awaited at {}", fetchStartedAt.get()); long timeDeltaMillis = TimeUnit.NANOSECONDS.toMillis(fetchStartedAt.get() - coordinationStartedAt); - Assertions.assertTrue(timeDeltaMillis >= 100, "Fetch started in " + timeDeltaMillis + "ms"); - Assertions.assertTrue(timeDeltaMillis <= 2000, "Fetch started in " + timeDeltaMillis + "ms"); + Assert.assertTrue("Fetch started in " + timeDeltaMillis + "ms", timeDeltaMillis >= 100); + Assert.assertTrue("Fetch started in " + timeDeltaMillis + "ms", timeDeltaMillis <= 2000); } } } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org