Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
run/tests: fix flaky RunAttachTermination test
During an attached `docker run`, the CLI starts capturing signals so that they can be forwarded to the container. The CLI stops capturing signals after container is no longer running/it's streams are closed. This test had two issues: - it would close the streams early, causing the CLI to think the container had exited, and stop signal handling (causing the SIGINT to not be captured and interrupt the test instead), and - it would send immediately on the status channel returned by WaitFunc, which would also signal the container has exited and caused the CLI to stop signal handling This patch addresses both of these issues and makes this test less flaky. Signed-off-by: Laura Brehm <[email protected]>
- Loading branch information