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
beat
beat.core
Commits
d4848ee1
Commit
d4848ee1
authored
Jan 04, 2017
by
Philip ABBET
Browse files
Fix the test_docker.AsyncTest.test_does_not_timeout unittest
parent
8f557ca0
Pipeline
#6190
failed with stage
in 3 minutes and 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
beat/core/test/test_docker.py
100644 → 100755
View file @
d4848ee1
...
...
@@ -111,7 +111,7 @@ class AsyncTest(unittest.TestCase):
sleep_for
=
0.5
# seconds
with
Popen
(
self
.
host
,
'debian:8.4'
,
[
"sleep"
,
str
(
sleep_for
)])
as
p
:
status
=
p
.
wait
(
1
)
#should not timeout
status
=
p
.
wait
(
5
)
#should not timeout
self
.
assertEqual
(
p
.
status
(),
'exited'
)
self
.
assertEqual
(
status
,
0
)
self
.
assertEqual
(
p
.
stdout
,
''
)
...
...
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