diff options
author | Alan Conway <aconway@apache.org> | 2010-03-30 20:56:53 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2010-03-30 20:56:53 +0000 |
commit | a26ed68e2070935774418603fe043f3653cefb8a (patch) | |
tree | bd46dc9f9b0b2b254e5c155f6ac0ecd48cb37d6b /cpp/src | |
parent | cfe6bb5fbde532d57e8cb8b6c1e338b00e58034b (diff) | |
download | qpid-python-a26ed68e2070935774418603fe043f3653cefb8a.tar.gz |
Fix intermittent failure of cluster_tests.py test_last_store_clean.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@929272 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rwxr-xr-x | cpp/src/tests/cluster_tests.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cpp/src/tests/cluster_tests.py b/cpp/src/tests/cluster_tests.py index fe020786dc..0c4b0350a7 100755 --- a/cpp/src/tests/cluster_tests.py +++ b/cpp/src/tests/cluster_tests.py @@ -404,12 +404,17 @@ class StoreTests(BrokerTest): c = cluster.start("c", expect=EXPECT_EXIT_FAIL) a.send_message("q", Message("x", durable=True)) a.kill() + # FIXME aconway 2010-03-29: this test has too many sleeps. + # Need to tighten up status persistence to be more atomic and less + # prone to interruption. + time.sleep(0.1) # pause for b to update status. b.kill() # c is last man time.sleep(0.1) # pause for c to find out hes last. a = cluster.start("a", expect=EXPECT_EXIT_FAIL) # c no longer last man + time.sleep(0.1) # pause for c to find out hes no longer last. c.kill() # a is now last man time.sleep(0.1) # pause for a to find out hes last. - a.kill() # really last + a.kill() # really last, should be clean. # b & c should be dirty b = cluster.start("b", wait=False, expect=EXPECT_EXIT_FAIL) self.assert_dirty_store(b) |