Permalink
Browse files

Added sleep to rebalance test for the metadata to propagate

  • Loading branch information...
1 parent 1ba7cf7 commit 87bac5506fb8093faecc8c39f24ccc0f84c399ff @rsumbaly rsumbaly committed May 18, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/unit/voldemort/client/rebalance/AdminRebalanceTest.java
@@ -878,7 +878,7 @@ public void testRebalanceNodeRO() throws IOException {
}
@Test
- public void testRebalanceNodeRORW() throws IOException {
+ public void testRebalanceNodeRORW() throws IOException, InterruptedException {
try {
startFourNodeRORW();
@@ -992,6 +992,8 @@ public void testRebalanceNodeRORW() throws IOException {
fail("Should have thrown an exception since we added state before hand");
} catch(VoldemortRebalancingException e) {}
+ Thread.sleep(1000);
+
for(VoldemortServer server: servers) {
assertEquals(server.getMetadataStore().getRebalancerState(),
new RebalancerState(new ArrayList<RebalancePartitionsInfo>()));

0 comments on commit 87bac55

Please sign in to comment.