You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by gt...@apache.org on 2015/01/06 17:00:39 UTC
activemq git commit: track first missing message - to see if there is
some consistency to the ubuntu ci failures
Repository: activemq
Updated Branches:
refs/heads/trunk 5616d39d8 -> a52bfe62a
track first missing message - to see if there is some consistency to the ubuntu ci failures
Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/a52bfe62
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/a52bfe62
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/a52bfe62
Branch: refs/heads/trunk
Commit: a52bfe62a4c10ba4d4c6397548dd4a5900c4d3a3
Parents: 5616d39
Author: gtully <ga...@gmail.com>
Authored: Tue Jan 6 15:57:50 2015 +0000
Committer: gtully <ga...@gmail.com>
Committed: Tue Jan 6 15:57:50 2015 +0000
----------------------------------------------------------------------
.../activemq/leveldb/test/ElectingLevelDBStoreTest.java | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/activemq/blob/a52bfe62/activemq-leveldb-store/src/test/java/org/apache/activemq/leveldb/test/ElectingLevelDBStoreTest.java
----------------------------------------------------------------------
diff --git a/activemq-leveldb-store/src/test/java/org/apache/activemq/leveldb/test/ElectingLevelDBStoreTest.java b/activemq-leveldb-store/src/test/java/org/apache/activemq/leveldb/test/ElectingLevelDBStoreTest.java
index f5c6888..97bcff9 100644
--- a/activemq-leveldb-store/src/test/java/org/apache/activemq/leveldb/test/ElectingLevelDBStoreTest.java
+++ b/activemq-leveldb-store/src/test/java/org/apache/activemq/leveldb/test/ElectingLevelDBStoreTest.java
@@ -129,7 +129,16 @@ public class ElectingLevelDBStoreTest extends ZooKeeperTestSupport {
}
LOG.info("Checking master state");
- assertEquals(expected_list, getMessages(ms));
+ ArrayList<String> messagesInStore = getMessages(ms);
+ int index=0;
+ for (String id: expected_list) {
+ if (!id.equals(messagesInStore.get(index))) {
+ LOG.info("Mismatch for expected:" + id + ", got:" + messagesInStore.get(index));
+ break;
+ }
+ index++;
+ }
+ assertEquals(expected_list, messagesInStore);
}
@Test(timeout = 1000 * 60 * 10)