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

Function predicate

test/utils.py:119–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117 try:
118
119 def predicate():
120 return target_host_list == discover()
121
122 wait_until(predicate, "connected to all hosts")
123 except AssertionError as exc:

Callers 6

wait_for_readyMethod · 0.70
wait_untilFunction · 0.70
reduceFunction · 0.70
is_notFunction · 0.70
checkFunction · 0.70
wait_forMethod · 0.50

Calls 1

discoverFunction · 0.70

Tested by 1

wait_for_readyMethod · 0.56