MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / async_set_fail_point

Function async_set_fail_point

test/asynchronous/utils.py:145–148  ·  view source on GitHub ↗
(client, command_args)

Source from the content-addressed store, hash-verified

143
144
145async def async_set_fail_point(client, command_args):
146 cmd = SON([("configureFailPoint", "failCommand")])
147 cmd.update(command_args)
148 await client.admin.command(cmd)
149
150
151async def async_joinall(tasks):

Calls 3

updateMethod · 0.95
SONClass · 0.90
commandMethod · 0.45