From 2b633ee5c5213dffebf83391a6c7c21bc0bff5ed Mon Sep 17 00:00:00 2001 From: Clebert Suconic Date: Tue, 4 Sep 2018 12:47:26 -0400 Subject: [PATCH] NO-JIRA Using less resources from public clouds on tests LibaioTest was failing because of a test that was allocating 500 positions on libaio. Which may not be available on Travis every time. --- .../org/apache/activemq/artemis/jlibaio/test/LibaioTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artemis-native/src/test/java/org/apache/activemq/artemis/jlibaio/test/LibaioTest.java b/artemis-native/src/test/java/org/apache/activemq/artemis/jlibaio/test/LibaioTest.java index 922df372f5..e663e1919b 100644 --- a/artemis-native/src/test/java/org/apache/activemq/artemis/jlibaio/test/LibaioTest.java +++ b/artemis-native/src/test/java/org/apache/activemq/artemis/jlibaio/test/LibaioTest.java @@ -630,7 +630,7 @@ public class LibaioTest { @Test public void testBlockedCallback() throws Exception { - final LibaioContext blockedContext = new LibaioContext(500, true, true); + final LibaioContext blockedContext = new LibaioContext(LIBAIO_QUEUE_SIZE, true, true); Thread t = new Thread() { @Override public void run() { @@ -640,7 +640,7 @@ public class LibaioTest { t.start(); - int NUMBER_OF_BLOCKS = 5000; + int NUMBER_OF_BLOCKS = LIBAIO_QUEUE_SIZE * 10; final CountDownLatch latch = new CountDownLatch(NUMBER_OF_BLOCKS);