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

Function set_fail_point

test/utils.py:143–146  ·  view source on GitHub ↗
(client, command_args)

Source from the content-addressed store, hash-verified

141
142
143def set_fail_point(client, command_args):
144 cmd = SON([("configureFailPoint", "failCommand")])
145 cmd.update(command_args)
146 client.admin.command(cmd)
147
148
149def joinall(tasks):

Calls 3

updateMethod · 0.95
SONClass · 0.90
commandMethod · 0.45