Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
None
-
Normal
Description
test_no_base_column_in_view_pk_complex_timestamp_with_flush - materialized_views_test.TestMaterializedViews frequently fails in CI
self = <materialized_views_test.TestMaterializedViews object at 0x7f849b25cf60>
@since('3.0')
def test_no_base_column_in_view_pk_complex_timestamp_with_flush(self):
> self._test_no_base_column_in_view_pk_complex_timestamp(flush=True)
materialized_views_test.py:970:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
materialized_views_test.py:1066: in _test_no_base_column_in_view_pk_complex_timestamp
assert_one(session, "SELECT * FROM t", [1, 1, None, None, None, 1])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
session = <cassandra.cluster.Session object at 0x7f849b379390>
query = 'SELECT * FROM t', expected = [1, 1, None, None, None, 1], cl = None
def assert_one(session, query, expected, cl=None):
"""
Assert query returns one row.
@param session Session to use
@param query Query to run
@param expected Expected results from query
@param cl Optional Consistency Level setting. Default ONE
Examples:
assert_one(session, "LIST USERS", ['cassandra', True])
assert_one(session, query, [0, 0])
"""
simple_query = SimpleStatement(query, consistency_level=cl)
res = session.execute(simple_query)
list_res = _rows_to_list(res)
> assert list_res == [expected], "Expected {} from {}, but got {}".format([expected], query, list_res)
E AssertionError: Expected [[1, 1, None, None, None, 1]] from SELECT * FROM t, but got []