From a52bfe62a4c10ba4d4c6397548dd4a5900c4d3a3 Mon Sep 17 00:00:00 2001 From: gtully Date: Tue, 6 Jan 2015 15:57:50 +0000 Subject: [PATCH] track first missing message - to see if there is some consistency to the ubuntu ci failures --- .../leveldb/test/ElectingLevelDBStoreTest.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 f5c688858d..97bcff9c39 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 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)