Skip to content

Commit c36dd26

Browse files
committed
fix skip handling
1 parent 6184475 commit c36dd26

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

test/asynchronous/unified_format.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -533,16 +533,17 @@ def maybe_skip_test(self, spec):
533533
class_name = self.__class__.__name__.lower()
534534
description = spec["description"].lower()
535535
if "csot" in class_name:
536+
# Skip tests that are too slow to run on a given platform.
536537
slow_win32 = [
537-
"maxTimeMS value in the command is less than timeoutMS",
538-
"Non-tailable cursor lifetime remaining timeoutMS applied to getMore if timeoutMode is unset",
539-
"timeoutMS applied to update during a rename",
540-
"timeoutMS applied to find to get chunks",
541-
"test timeoutMS applied to find to get files document",
542-
"test timeoutMS applied to find command",
538+
"maxtimems value in the command is less than maxtimems",
539+
"non-tailable cursor lifetime remaining maxtimems applied to getmore if timeoutmode is unset",
540+
"maxtimems applied to update during a rename",
541+
"maxtimems applied to find to get chunks",
542+
"maxtimems applied to find to get files document",
543+
"maxtimems applied to find command",
543544
]
544545
slow_macos = [
545-
"Non-tailable cursor lifetime remaining timeoutMS applied to getMore if timeoutMode is unset"
546+
"non-tailable cursor lifetime remaining maxtimems applied to getmore if timeoutmode is unset"
546547
]
547548
if sys.platform == "win32" and description in slow_win32:
548549
self.skipTest("PYTHON-3522 CSOT test run too slow on Windows")

test/unified_format.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -532,16 +532,17 @@ def maybe_skip_test(self, spec):
532532
class_name = self.__class__.__name__.lower()
533533
description = spec["description"].lower()
534534
if "csot" in class_name:
535+
# Skip tests that are too slow to run on a given platform.
535536
slow_win32 = [
536-
"maxTimeMS value in the command is less than timeoutMS",
537-
"Non-tailable cursor lifetime remaining timeoutMS applied to getMore if timeoutMode is unset",
538-
"timeoutMS applied to update during a rename",
539-
"timeoutMS applied to find to get chunks",
540-
"test timeoutMS applied to find to get files document",
541-
"test timeoutMS applied to find command",
537+
"maxtimems value in the command is less than maxtimems",
538+
"non-tailable cursor lifetime remaining maxtimems applied to getmore if timeoutmode is unset",
539+
"maxtimems applied to update during a rename",
540+
"maxtimems applied to find to get chunks",
541+
"maxtimems applied to find to get files document",
542+
"maxtimems applied to find command",
542543
]
543544
slow_macos = [
544-
"Non-tailable cursor lifetime remaining timeoutMS applied to getMore if timeoutMode is unset"
545+
"non-tailable cursor lifetime remaining maxtimems applied to getmore if timeoutmode is unset"
545546
]
546547
if sys.platform == "win32" and description in slow_win32:
547548
self.skipTest("PYTHON-3522 CSOT test run too slow on Windows")

0 commit comments

Comments
 (0)