File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -1022,7 +1022,10 @@ async def test_replace_bypass_document_validation(self):
10221022 await db .test .insert_one ({"y" : 1 }, bypass_document_validation = True )
10231023 await db_w0 .test .replace_one ({"y" : 1 }, {"x" : 1 }, bypass_document_validation = True )
10241024
1025- await async_wait_until (lambda : db_w0 .test .find_one ({"x" : 1 }), "find w:0 replaced document" )
1025+ async def async_lambda ():
1026+ await db_w0 .test .find_one ({"x" : 1 })
1027+
1028+ await async_wait_until (async_lambda , "find w:0 replaced document" )
10261029
10271030 async def test_update_bypass_document_validation (self ):
10281031 db = self .db
Original file line number Diff line number Diff line change @@ -1009,7 +1009,10 @@ def test_replace_bypass_document_validation(self):
10091009 db .test .insert_one ({"y" : 1 }, bypass_document_validation = True )
10101010 db_w0 .test .replace_one ({"y" : 1 }, {"x" : 1 }, bypass_document_validation = True )
10111011
1012- wait_until (lambda : db_w0 .test .find_one ({"x" : 1 }), "find w:0 replaced document" )
1012+ def async_lambda ():
1013+ db_w0 .test .find_one ({"x" : 1 })
1014+
1015+ wait_until (async_lambda , "find w:0 replaced document" )
10131016
10141017 def test_update_bypass_document_validation (self ):
10151018 db = self .db
You can’t perform that action at this time.
0 commit comments