MCPcopy Create free account
hub / github.com/ddnet/ddnet / meta_timeout

Function meta_timeout

scripts/integration_test.py:585–596  ·  view source on GitHub ↗
(test_env)

Source from the content-addressed store, hash-verified

583
584@test(timeout=10)
585def meta_timeout(test_env):
586 server = test_env.server()
587 wait_for_startup([server])
588 try:
589 server.wait_for_exit(timeout=0.1)
590 except TimeoutError as e:
591 if str(e) != "timeout waiting for exit":
592 raise
593 else:
594 raise AssertionError("timeout should have triggered")
595 server.exit()
596 server.wait_for_exit()
597
598
599@test(timeout=0.1)

Callers

nothing calls this directly

Calls 4

wait_for_startupFunction · 0.85
serverMethod · 0.80
wait_for_exitMethod · 0.80
exitMethod · 0.45

Tested by

no test coverage detected