Skip to content

Commit 614e22c

Browse files
authored
PYTHON-3478 Improve test_change_stream_can_resume_after_timeouts (#1083)
1 parent 1d117c1 commit 614e22c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_csot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ def test_timeout_nested(self):
7676
@client_context.require_change_streams
7777
def test_change_stream_can_resume_after_timeouts(self):
7878
coll = self.db.test
79-
with coll.watch(max_await_time_ms=150) as stream:
79+
with coll.watch() as stream:
8080
with pymongo.timeout(0.1):
8181
with self.assertRaises(PyMongoError) as ctx:
82-
stream.try_next()
82+
stream.next()
8383
self.assertTrue(ctx.exception.timeout)
8484
self.assertTrue(stream.alive)
8585
with self.assertRaises(PyMongoError) as ctx:

0 commit comments

Comments
 (0)