File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 34
34
from test .utils import (
35
35
CMAPListener ,
36
36
OvertCommandListener ,
37
- set_fail_point ,
37
+ async_set_fail_point ,
38
38
)
39
39
40
40
from pymongo .monitoring import (
@@ -167,7 +167,7 @@ async def test_retryable_reads_in_sharded_cluster_multiple_available(self):
167
167
168
168
for mongos in async_client_context .mongos_seeds ().split ("," ):
169
169
client = await self .async_rs_or_single_client (mongos )
170
- set_fail_point (client , fail_command )
170
+ await async_set_fail_point (client , fail_command )
171
171
self .addAsyncCleanup (client .close )
172
172
mongos_clients .append (client )
173
173
@@ -186,7 +186,7 @@ async def test_retryable_reads_in_sharded_cluster_multiple_available(self):
186
186
# Disable failpoints on each mongos
187
187
for client in mongos_clients :
188
188
fail_command ["mode" ] = "off"
189
- set_fail_point (client , fail_command )
189
+ await async_set_fail_point (client , fail_command )
190
190
191
191
self .assertEqual (len (listener .failed_events ), 2 )
192
192
self .assertEqual (len (listener .succeeded_events ), 0 )
You can’t perform that action at this time.
0 commit comments