Repository: activemq Updated Branches: refs/heads/trunk 81d83718a -> f303f85ce
remove inadvertent test mods Project: http://git-wip-us.apache.org/repos/asf/activemq/repo Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/f303f85c Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/f303f85c Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/f303f85c Branch: refs/heads/trunk Commit: f303f85ce33e1183c5cc4f4fb03ce2f26345024a Parents: 81d8371 Author: gtully <[email protected]> Authored: Thu Jan 8 15:56:11 2015 +0000 Committer: gtully <[email protected]> Committed: Thu Jan 8 15:58:28 2015 +0000 ---------------------------------------------------------------------- .../leveldb/test/ElectingLevelDBStoreTest.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/activemq/blob/f303f85c/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 d0730ae..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 @@ -87,16 +87,16 @@ public class ElectingLevelDBStoreTest extends ZooKeeperTestSupport { // Start sending messages to the master. ArrayList<String> expected_list = new ArrayList<String>(); MessageStore ms = master.createQueueMessageStore(new ActiveMQQueue("TEST")); - final int TOTAL = 2; + final int TOTAL = 500; for (int i = 0; i < TOTAL; i++) { - //if (i % ((int) (TOTAL * 0.10)) == 0) { + if (i % ((int) (TOTAL * 0.10)) == 0) { LOG.info("" + (100 * i / TOTAL) + "% done"); - //} + } - if( i == 1 ) { + if( i == 250 ) { - //LOG.info("Checking master state"); - //assertEquals(expected_list, getMessages(ms)); + LOG.info("Checking master state"); + assertEquals(expected_list, getMessages(ms)); // mid way, lets kill the master.. LOG.info("Killing Master."); @@ -141,7 +141,7 @@ public class ElectingLevelDBStoreTest extends ZooKeeperTestSupport { assertEquals(expected_list, messagesInStore); } - //@Test(timeout = 1000 * 60 * 10) + @Test(timeout = 1000 * 60 * 10) public void testZooKeeperServerFailure() throws Exception { final ArrayList<ElectingLevelDBStore> stores = new ArrayList<ElectingLevelDBStore>();
