Skip to content

Commit

Permalink
fix timed out tests pt4
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepyStick committed Sep 13, 2024
1 parent fa3207c commit 7d04121
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/asynchronous/test_change_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ async def get_resume_token(self, invalidate=False):
if isinstance(cs._target, AsyncMongoClient):
self.skipTest("cluster-level change streams cannot be invalidated")
self.generate_invalidate_event(cs)
return cs.next()["_id"]
return (await cs.next())["_id"]
else:
async with await self.change_stream() as cs:
await coll.insert_one({"data": 1})
return cs.next()["_id"]
return (await cs.next())["_id"]

async def get_start_at_operation_time(self):
"""Get an operationTime. Advances the operation clock beyond the most
Expand Down
4 changes: 2 additions & 2 deletions test/test_change_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ def get_resume_token(self, invalidate=False):
if isinstance(cs._target, MongoClient):
self.skipTest("cluster-level change streams cannot be invalidated")
self.generate_invalidate_event(cs)
return cs.next()["_id"]
return (cs.next())["_id"]
else:
with self.change_stream() as cs:
coll.insert_one({"data": 1})
return cs.next()["_id"]
return (cs.next())["_id"]

def get_start_at_operation_time(self):
"""Get an operationTime. Advances the operation clock beyond the most
Expand Down

0 comments on commit 7d04121

Please sign in to comment.