Skip to content

Commit 2bef230

Browse files
fruchactions-user
authored andcommitted
integration/standard/test_query.py: fix test_no_connection_refused_on_timeout
seems like this test was fixed in upsteam to ignore `ErrorMessage` type I don't know the exact reason, but since it take us quite some time to sync with upstream, taking this change on it's own it happens only with cassandra (tested with 4.1) Ref: datastax@1b335d4
1 parent cbf9d4f commit 2bef230

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration/standard/test_query.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@ def test_no_connection_refused_on_timeout(self):
945945
exception_type = type(result).__name__
946946
if exception_type == "NoHostAvailable":
947947
self.fail("PYTHON-91: Disconnected from Cassandra: %s" % result.message)
948-
if exception_type in ["WriteTimeout", "WriteFailure", "ReadTimeout", "ReadFailure", "ErrorMessageSub"]:
948+
if exception_type in ["WriteTimeout", "WriteFailure", "ReadTimeout", "ReadFailure", "ErrorMessageSub", "ErrorMessage"]:
949949
if type(result).__name__ in ["WriteTimeout", "WriteFailure"]:
950950
received_timeout = True
951951
continue

0 commit comments

Comments
 (0)