Skip to content
GitLab
Menu
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
c0bd5fbb
Commit
c0bd5fbb
authored
Jun 21, 2021
by
Wout De Nolf
Browse files
test: less strict timeouts in mockup_regulation
parent
03599e74
Pipeline
#49075
passed with stages
in 115 minutes and 19 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tests/regulation/temperature/test_mockup.py
View file @
c0bd5fbb
...
...
@@ -63,7 +63,8 @@ def mockup_regulation(loop):
assert
x
.
is_ramping
()
is
True
gevent
.
sleep
(
0.1
)
assert
x
.
is_ramping
()
is
True
with
gevent
.
Timeout
(
2.0
):
with
gevent
.
Timeout
(
3.0
):
# Takes approx. 1 seconds
while
x
.
is_ramping
():
gevent
.
sleep
(
0.01
)
assert
x
.
setpoint
==
sp
...
...
@@ -94,7 +95,8 @@ def mockup_regulation(loop):
sp
=
x
.
input
.
read
()
+
0.1
x
.
axis_move
(
sp
)
with
gevent
.
Timeout
(
5.0
):
with
gevent
.
Timeout
(
10.0
):
# Takes approx. 5 seconds
while
x
.
axis_state
()
!=
"READY"
:
gevent
.
sleep
(
0.01
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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