PYTHON-4303 Fix Unified Transaction Test Runner (#1568)
This commit is contained in:
parent
add6a30766
commit
61488918f9
@ -1062,8 +1062,8 @@ class UnifiedSpecTestMixinV1(IntegrationTest):
|
||||
self.skipTest("PyMongo's open_download_stream does not cap the stream's lifetime")
|
||||
|
||||
if "unpin after TransientTransactionError error on" in spec["description"]:
|
||||
if client_context.version[0] == 8:
|
||||
self.skipTest("Skipping TransientTransactionError pending PYTHON-4182")
|
||||
self.skipTest("Skipping TransientTransactionError pending PYTHON-4227")
|
||||
|
||||
if "unpin after non-transient error on abort" in spec["description"]:
|
||||
if client_context.version[0] == 8:
|
||||
self.skipTest("Skipping TransientTransactionError pending PYTHON-4182")
|
||||
@ -1252,7 +1252,7 @@ class UnifiedSpecTestMixinV1(IntegrationTest):
|
||||
clients = self.mongos_clients if self.mongos_clients else [self.client]
|
||||
for client in clients:
|
||||
try:
|
||||
self.client.admin.command("killAllSessions", [])
|
||||
client.admin.command("killAllSessions", [])
|
||||
except OperationFailure:
|
||||
# "operation was interrupted" by killing the command's
|
||||
# own session.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user