MCPcopy Create free account
hub / github.com/CJackHwang/AIstudioProxyAPI / check_with_delay

Function check_with_delay

tests/browser_utils/test_operations.py:1207–1210  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

1205 call_count = [0]
1206
1207 def check_with_delay(msg):
1208 call_count[0] += 1
1209 if call_count[0] > 1:
1210 raise ClientDisconnectedError("Disconnected")
1211
1212 check_disconnect = MagicMock(side_effect=check_with_delay)
1213

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected