activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject activemq-artemis git commit: NO-JIRA Using less resources from public clouds on tests
Date Tue, 04 Sep 2018 16:52:08 GMT
Repository: activemq-artemis
Updated Branches:
  refs/heads/2.6.x 0ce276e0a -> 560986092


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.


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/56098609
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/56098609
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/56098609

Branch: refs/heads/2.6.x
Commit: 560986092a144a9f844d68d5b48cd7307bbe945d
Parents: 0ce276e
Author: Clebert Suconic <clebertsuconic@apache.org>
Authored: Tue Sep 4 12:47:26 2018 -0400
Committer: Clebert Suconic <clebertsuconic@apache.org>
Committed: Tue Sep 4 12:52:02 2018 -0400

----------------------------------------------------------------------
 .../org/apache/activemq/artemis/jlibaio/test/LibaioTest.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/56098609/artemis-native/src/test/java/org/apache/activemq/artemis/jlibaio/test/LibaioTest.java
----------------------------------------------------------------------
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 922df37..e663e19 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);
 


Mime
View raw message