Add test to illustrate non-deterministic query test failure
This commit is contained in:
@@ -298,8 +298,8 @@ class BatchStatementTests(unittest.TestCase):
|
|||||||
keys.add(result.k)
|
keys.add(result.k)
|
||||||
values.add(result.v)
|
values.add(result.v)
|
||||||
|
|
||||||
self.assertEqual(set(range(10)), keys)
|
self.assertEqual(set(range(10)), keys, msg=results)
|
||||||
self.assertEqual(set(range(10)), values)
|
self.assertEqual(set(range(10)), values, msg=results)
|
||||||
|
|
||||||
def test_string_statements(self):
|
def test_string_statements(self):
|
||||||
batch = BatchStatement(BatchType.LOGGED)
|
batch = BatchStatement(BatchType.LOGGED)
|
||||||
@@ -367,6 +367,11 @@ class BatchStatementTests(unittest.TestCase):
|
|||||||
self.session.execute(batch)
|
self.session.execute(batch)
|
||||||
self.confirm_results()
|
self.confirm_results()
|
||||||
|
|
||||||
|
def test_no_parameters_many_times(self):
|
||||||
|
for i in range(1000):
|
||||||
|
self.test_no_parameters()
|
||||||
|
self.session.execute("TRUNCATE test3rf.test")
|
||||||
|
|
||||||
|
|
||||||
class SerialConsistencyTests(unittest.TestCase):
|
class SerialConsistencyTests(unittest.TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user