Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Bliss
bliss
Commits
4ba24fe5
Commit
4ba24fe5
authored
Jun 18, 2021
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tests/scans/test_exception.py
View file @
4ba24fe5
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment