Skip to content

Commit ba715b1

Browse files
committed
PYTHON-5120 Fix async test_connection_monitoring.py
1 parent 04447c8 commit ba715b1

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

test/asynchronous/test_connection_monitoring.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -211,15 +211,10 @@ def check_error(self, actual, expected):
211211
self.check_object(actual, expected)
212212
self.assertIn(message, str(actual))
213213

214-
async def _set_fail_point(self, client, command_args):
215-
cmd = SON([("configureFailPoint", "failCommand")])
216-
cmd.update(command_args)
217-
await client.admin.command(cmd)
218-
219214
async def set_fail_point(self, command_args):
220215
if not async_client_context.supports_failCommand_fail_point:
221216
self.skipTest("failCommand fail point must be supported")
222-
await self._set_fail_point(self.client, command_args)
217+
await self.configure_fail_point(self.client, command_args)
223218

224219
async def run_scenario(self, scenario_def, test):
225220
"""Run a CMAP spec test."""

0 commit comments

Comments
 (0)