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

Function meta_test_timeout

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

Source from the content-addressed store, hash-verified

598
599@test(timeout=0.1)
600def meta_test_timeout(test_env):
601 server = test_env.server()
602 try:
603 server.wait_for_exit(timeout=1)
604 except TimeoutError as e:
605 if str(e) != "test timeout":
606 raise
607 else:
608 raise AssertionError("timeout should have triggered")
609 # with the global timeout disabled, better exit the test quickly without waiting
610
611
612@test

Callers

nothing calls this directly

Calls 2

serverMethod · 0.80
wait_for_exitMethod · 0.80

Tested by

no test coverage detected