-
Type: Build Failure
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
-
Python Drivers
-
Not Needed
-
Name of Failure:
test.test_csot.TestCSOT.test_timeout_nested
Link to task:
Context of when and why the failure occurred:
We need to see if this variant or this test is not honoring the CSOT skip flag.
Stack trace:
[2024/12/03 19:51:54.657] FAILURE: AssertionError: 67054.725674583 not less than 67054.725674583 () [2024/12/03 19:51:54.657] self = <test.test_csot.TestCSOT testMethod=test_timeout_nested> [2024/12/03 19:51:54.657] def test_timeout_nested(self): [2024/12/03 19:51:54.657] coll = self.db.coll [2024/12/03 19:51:54.657] self.assertEqual(_csot.get_timeout(), None) [2024/12/03 19:51:54.657] self.assertEqual(_csot.get_deadline(), float("inf")) [2024/12/03 19:51:54.657] self.assertEqual(_csot.get_rtt(), 0.0) [2024/12/03 19:51:54.657] with pymongo.timeout(10): [2024/12/03 19:51:54.657] coll.find_one() [2024/12/03 19:51:54.657] self.assertEqual(_csot.get_timeout(), 10) [2024/12/03 19:51:54.657] deadline_10 = _csot.get_deadline() [2024/12/03 19:51:54.657] [2024/12/03 19:51:54.657] # Capped at the original 10 deadline. [2024/12/03 19:51:54.657] with pymongo.timeout(15): [2024/12/03 19:51:54.657] coll.find_one() [2024/12/03 19:51:54.657] self.assertEqual(_csot.get_timeout(), 15) [2024/12/03 19:51:54.657] self.assertEqual(_csot.get_deadline(), deadline_10) [2024/12/03 19:51:54.657] [2024/12/03 19:51:54.657] # Should be reset to previous values [2024/12/03 19:51:54.657] self.assertEqual(_csot.get_timeout(), 10) [2024/12/03 19:51:54.657] self.assertEqual(_csot.get_deadline(), deadline_10) [2024/12/03 19:51:54.657] coll.find_one() [2024/12/03 19:51:54.657] [2024/12/03 19:51:54.657] with pymongo.timeout(5): [2024/12/03 19:51:54.657] coll.find_one() [2024/12/03 19:51:54.657] self.assertEqual(_csot.get_timeout(), 5) [2024/12/03 19:51:54.657] > self.assertLess(_csot.get_deadline(), deadline_10) [2024/12/03 19:51:54.657] E AssertionError: 67054.725674583 not less than 67054.725674583 [2024/12/03 19:51:54.657] test/test_csot.py:65: AssertionError