Commit 4ba24fe5 authored by Valentin Valls's avatar Valentin Valls
Browse files

No need to handle timeout

- timescan is here limited to 10 iterations
parent 5a9bb8a5
Pipeline #48914 passed with stages
in 157 minutes and 2 seconds
......@@ -39,14 +39,11 @@ def test_exception_in_reading(session):
c = Cnt(10)
s = scans.timescan(0, c, npoints=10, save=False, run=False)
try:
with gevent.Timeout(1):
s.run()
except RuntimeError:
if not event.is_set():
raise
except gevent.Timeout:
assert False
with pytest.raises(RuntimeError):
s.run()
if not event.is_set():
assert False, "RuntimeError was not raised from the right place"
assert s.state == ScanState.KILLED
assert s.node.info["state"] == ScanState.KILLED
......
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