Commit a9412a0a authored by Philip ABBET's avatar Philip ABBET
Browse files

Impose a timeout on tests executing an algorithm inside a docker container

parent 5ebb4e01
Pipeline #6716 canceled with stage
in 5 minutes and 40 seconds
...@@ -130,7 +130,7 @@ class TestExecution(unittest.TestCase): ...@@ -130,7 +130,7 @@ class TestExecution(unittest.TestCase):
assert executor.valid, '\n * %s' % '\n * '.join(executor.errors) assert executor.valid, '\n * %s' % '\n * '.join(executor.errors)
with executor: with executor:
result = executor.process(self.host) result = executor.process(self.host, timeout_in_minutes=1)
assert result assert result
assert 'status' in result assert 'status' in result
assert 'stdout' in result assert 'stdout' in result
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment