mirror of
https://github.com/docker/compose.git
synced 2025-07-24 22:24:41 +02:00
Make a new flaky test less flaky.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
089ec66522
commit
dfac48f3f5
@ -1226,6 +1226,10 @@ class CLITestCase(DockerClientTestCase):
|
|||||||
'logscomposefile_another_1',
|
'logscomposefile_another_1',
|
||||||
'exited'))
|
'exited'))
|
||||||
|
|
||||||
|
# sleep for a short period to allow the tailing thread to receive the
|
||||||
|
# event. This is not great, but there isn't an easy way to do this
|
||||||
|
# without being able to stream stdout from the process.
|
||||||
|
time.sleep(0.5)
|
||||||
os.kill(proc.pid, signal.SIGINT)
|
os.kill(proc.pid, signal.SIGINT)
|
||||||
result = wait_on_process(proc, returncode=1)
|
result = wait_on_process(proc, returncode=1)
|
||||||
assert 'test' in result.stdout
|
assert 'test' in result.stdout
|
||||||
|
Loading…
x
Reference in New Issue
Block a user