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):
1022
1022
await db .test .insert_one ({"y" : 1 }, bypass_document_validation = True )
1023
1023
await db_w0 .test .replace_one ({"y" : 1 }, {"x" : 1 }, bypass_document_validation = True )
1024
1024
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" )
1026
1029
1027
1030
async def test_update_bypass_document_validation (self ):
1028
1031
db = self .db
Original file line number Diff line number Diff line change @@ -1009,7 +1009,10 @@ def test_replace_bypass_document_validation(self):
1009
1009
db .test .insert_one ({"y" : 1 }, bypass_document_validation = True )
1010
1010
db_w0 .test .replace_one ({"y" : 1 }, {"x" : 1 }, bypass_document_validation = True )
1011
1011
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" )
1013
1016
1014
1017
def test_update_bypass_document_validation (self ):
1015
1018
db = self .db
You can’t perform that action at this time.
0 commit comments