mirror of
https://github.com/apache/activemq-artemis.git
synced 2025-02-20 17:05:51 +00:00
NO-JIRA Speedup PageCountSyncOnNonTX
This commit is contained in:
parent
6e611d8c14
commit
806b8d3217
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user