dcapwell commented on code in PR #200:
URL: https://github.com/apache/cassandra-dtest/pull/200#discussion_r948528084


##########
cql_test.py:
##########
@@ -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

Review Comment:
   ```
   >>> 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'>
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to