track first missing message - to see if there is some consistency to the ubuntu ci failures

This commit is contained in:
gtully 2015-01-06 15:57:50 +00:00
parent 5616d39d82
commit a52bfe62a4
1 changed files with 10 additions and 1 deletions

View File

@ -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)