MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / test_task_timeout

Function test_task_timeout

tools-tests/tasks_test.py:118–124  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

116
117
118def test_task_timeout(tmp_path):
119 task = tasks.AllOsTask("test_task", ["sleep", "5"], timeout=0.01)
120 runner = tasks.TaskRunner(tmp_dir=tmp_path)
121 runner.run(task)
122
123 with open(pathlib.Path(runner.tmpdir) / runner.default_name) as fh:
124 assert "`['sleep', '5']` timed out after 0.01 seconds" in fh.read()
125
126
127def test_task_popen_exception(tmp_path):

Callers

nothing calls this directly

Calls 2

runMethod · 0.95
readMethod · 0.80

Tested by

no test coverage detected