MCPcopy Create free account
hub / github.com/mongodb/mongo-python-driver / delayed_connect

Method delayed_connect

test/test_client.py:2391–2393  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

2389
2390 # Patch the pool to delay the connect method.
2391 def delayed_connect(*args, **kwargs):
2392 time.sleep(3)
2393 return pool.__class__.connect(pool, *args, **kwargs)
2394
2395 pool.connect = delayed_connect
2396

Callers

nothing calls this directly

Calls 1

connectMethod · 0.45

Tested by

no test coverage detected