Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cql_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ def test_truncate_failure(self):
thrown = True

assert thrown, "No exception has been thrown"
assert re.search("Truncate failed on replica /127.0.0.3", str(exception)) is not None
assert re.search("Truncate failed on replicas? /127.0.0.3", str(exception)) is not None
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

>>> import re
>>> re.search('Truncate failed on replica /127.0.0.3', 'Truncate failed on replica /127.0.0.3')
<re.Match object; span=(0, 37), match='Truncate failed on replica /127.0.0.3'>
>>> re.search('Truncate failed on replicas /127.0.0.3', 'Truncate failed on replica /127.0.0.3')
>>> re.search('Truncate failed on replicas? /127.0.0.3', 'Truncate failed on replica /127.0.0.3')
<re.Match object; span=(0, 37), match='Truncate failed on replica /127.0.0.3'>
>>> re.search('Truncate failed on replicas? /127.0.0.3', 'Truncate failed on replicas /127.0.0.3 UNKNOWN')
<re.Match object; span=(0, 38), match='Truncate failed on replicas /127.0.0.3'>


@since('3.2')
class AbortedQueryTester(CQLTester):
Expand Down