-
Type: Bug
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
Python Drivers
-
Not Needed
test.test_client.TestClient.test_socket_timeout fails with pyopenssl caused by the changes in PYTHON-4292.
[2024/12/06 12:22:52.858] FAILURE: AssertionError: NetworkTimeout not raised () [2024/12/06 12:22:52.858] self = <test.test_client.TestClient testMethod=test_socket_timeout> [2024/12/06 12:22:52.858] def test_socket_timeout(self): [2024/12/06 12:22:52.858] no_timeout = self.client [2024/12/06 12:22:52.858] timeout_sec = 1 [2024/12/06 12:22:52.858] timeout = self.rs_or_single_client(socketTimeoutMS=1000 * timeout_sec) [2024/12/06 12:22:52.858] self.addCleanup(timeout.close) [2024/12/06 12:22:52.858] [2024/12/06 12:22:52.858] no_timeout.pymongo_test.drop_collection("test") [2024/12/06 12:22:52.858] no_timeout.pymongo_test.test.insert_one({"x": 1}) [2024/12/06 12:22:52.858] [2024/12/06 12:22:52.858] # A $where clause that takes a second longer than the timeout [2024/12/06 12:22:52.858] where_func = delay(timeout_sec + 1) [2024/12/06 12:22:52.858] [2024/12/06 12:22:52.858] def get_x(db): [2024/12/06 12:22:52.858] doc = next(db.test.find().where(where_func)) [2024/12/06 12:22:52.858] return doc["x"] [2024/12/06 12:22:52.858] [2024/12/06 12:22:52.858] self.assertEqual(1, get_x(no_timeout.pymongo_test)) [2024/12/06 12:22:52.858] > with self.assertRaises(NetworkTimeout): [2024/12/06 12:22:52.858] E AssertionError: NetworkTimeout not raised [2024/12/06 12:22:52.858] test/test_client.py:1240: AssertionError
- is caused by
-
PYTHON-4292 Perf regression when reading large SSL responses from multiple threads
- Closed