Prevented hang in test_speculative_and_timeout
This commit is contained in:
parent
88b1da1d6e
commit
d3664dd00a
@ -133,7 +133,8 @@ class SpecExecTest(BasicSharedKeyspaceUnitTestCase):
|
||||
# that's why we can't call session.execute,which would raise it, but
|
||||
# we have to directly wait for the event
|
||||
response_future = self.session.execute_async(statement, execution_profile='spec_ep_brr_lim', timeout=2.2)
|
||||
response_future._event.wait()
|
||||
response_future._event.wait(4)
|
||||
self.assertIsInstance(response_future._final_exception, OperationTimedOut)
|
||||
|
||||
# This is because 2.2 / 0.4 + 1 = 6
|
||||
self.assertEqual(len(response_future.attempted_hosts), 6)
|
||||
|
Loading…
Reference in New Issue
Block a user