This is an automated email from the ASF dual-hosted git repository.
clebertsuconic pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git
The following commit(s) were added to refs/heads/master by this push:
new 806b8d3 NO-JIRA Speedup PageCountSyncOnNonTX
806b8d3 is described below
commit 806b8d321711e2aec56fda527f9e4bc4d6167bb9
Author: Clebert Suconic <[email protected]>
AuthorDate: Thu Apr 16 13:33:11 2020 -0400
NO-JIRA Speedup PageCountSyncOnNonTX
---
.../artemis/tests/integration/paging/PageCountSyncOnNonTXTest.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git
a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/PageCountSyncOnNonTXTest.java
b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/PageCountSyncOnNonTXTest.java
index c5d4403..e3fa3c1 100644
---
a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/PageCountSyncOnNonTXTest.java
+++
b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/PageCountSyncOnNonTXTest.java
@@ -32,6 +32,7 @@ import org.apache.activemq.artemis.core.server.Queue;
import org.apache.activemq.artemis.logs.AssertionLoggerHandler;
import org.apache.activemq.artemis.tests.util.SpawnedTestBase;
import org.apache.activemq.artemis.utils.RandomUtil;
+import org.apache.activemq.artemis.utils.Wait;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
@@ -68,7 +69,7 @@ public class PageCountSyncOnNonTXTest extends SpawnedTestBase
{
public void setUp() throws Exception {
super.setUp();
- timeToRun = 30000L + RandomUtil.randomPositiveInt() % 1000;
+ timeToRun = 5000L + RandomUtil.randomPositiveInt() % 1000;
}
@Test
@@ -158,7 +159,7 @@ public class PageCountSyncOnNonTXTest extends
SpawnedTestBase {
try {
server.start();
- Thread.sleep(500);
+ Wait.assertTrue(server::isActive);
locator = createNettyNonHALocator();