Skip to content

Commit 5921853

Browse files
committed
CP review
1 parent 4560d96 commit 5921853

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

test/asynchronous/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ async def test_max_adaptive_retries(self):
657657
c = self.simple_client(connect=False)
658658
self.assertEqual(c.options.max_adaptive_retries, 2)
659659

660-
# Assert that adaptive retries can be enabled through connection or client options.
660+
# Assert that max adaptive retries can be configured through connection or client options.
661661
c = self.simple_client(connect=False, max_adaptive_retries=10)
662662
self.assertEqual(c.options.max_adaptive_retries, 10)
663663

test/asynchronous/test_client_backpressure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ async def test_03_overload_retries_limited(self):
254254
with self.assertRaises(PyMongoError) as error:
255255
await coll.find_one({})
256256

257-
# 5. Assert that the raised error contains both the `RetryableError` and `SystemOverLoadedError` error labels.
257+
# 5. Assert that the raised error contains both the `RetryableError` and `SystemOverloadedError` error labels.
258258
self.assertIn("RetryableError", str(error.exception))
259259
self.assertIn("SystemOverloadedError", str(error.exception))
260260

@@ -289,7 +289,7 @@ async def test_04_overload_retries_limited_configured(self):
289289
with self.assertRaises(PyMongoError) as error:
290290
await coll.find_one({})
291291

292-
# 5. Assert that the raised error contains both the `RetryableError` and `SystemOverLoadedError` error labels.
292+
# 5. Assert that the raised error contains both the `RetryableError` and `SystemOverloadedError` error labels.
293293
self.assertIn("RetryableError", str(error.exception))
294294
self.assertIn("SystemOverloadedError", str(error.exception))
295295

test/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ def test_max_adaptive_retries(self):
650650
c = self.simple_client(connect=False)
651651
self.assertEqual(c.options.max_adaptive_retries, 2)
652652

653-
# Assert that adaptive retries can be enabled through connection or client options.
653+
# Assert that max adaptive retries can be configured through connection or client options.
654654
c = self.simple_client(connect=False, max_adaptive_retries=10)
655655
self.assertEqual(c.options.max_adaptive_retries, 10)
656656

test/test_client_backpressure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def test_03_overload_retries_limited(self):
254254
with self.assertRaises(PyMongoError) as error:
255255
coll.find_one({})
256256

257-
# 5. Assert that the raised error contains both the `RetryableError` and `SystemOverLoadedError` error labels.
257+
# 5. Assert that the raised error contains both the `RetryableError` and `SystemOverloadedError` error labels.
258258
self.assertIn("RetryableError", str(error.exception))
259259
self.assertIn("SystemOverloadedError", str(error.exception))
260260

@@ -287,7 +287,7 @@ def test_04_overload_retries_limited_configured(self):
287287
with self.assertRaises(PyMongoError) as error:
288288
coll.find_one({})
289289

290-
# 5. Assert that the raised error contains both the `RetryableError` and `SystemOverLoadedError` error labels.
290+
# 5. Assert that the raised error contains both the `RetryableError` and `SystemOverloadedError` error labels.
291291
self.assertIn("RetryableError", str(error.exception))
292292
self.assertIn("SystemOverloadedError", str(error.exception))
293293

0 commit comments

Comments
 (0)