Skip to content

Conversation

@dcapwell
Copy link
Contributor

No description provided.

…ondition with callback timeouts, should return Timeout instead

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'>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant