Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
1 merge request!13Merge docker-related changes
Pipeline #
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment