Added possible fix to test_unavailable

This commit is contained in:
bjmb
2017-04-27 15:06:26 -04:00
parent 82d36bf105
commit b8f1b77383

View File

@@ -146,7 +146,7 @@ class MetricsTests(unittest.TestCase):
# Sometimes this commands continues with the other nodes having not noticed # Sometimes this commands continues with the other nodes having not noticed
# 1 is down, and a Timeout error is returned instead of an Unavailable # 1 is down, and a Timeout error is returned instead of an Unavailable
get_node(1).stop(wait=True, wait_other_notice=True) get_node(1).stop(wait=True, wait_other_notice=True)
time.sleep(5)
try: try:
# Test write # Test write
query = SimpleStatement("INSERT INTO test (k, v) VALUES (2, 2)", consistency_level=ConsistencyLevel.ALL) query = SimpleStatement("INSERT INTO test (k, v) VALUES (2, 2)", consistency_level=ConsistencyLevel.ALL)