moby/pkg/integration
Aaron Lehmann 13d768b8ee Adjust TestDockerCmdWithTimeout timeout to improve reliability
I saw a failure of TestDockerCmdWithTimeout. This test starts a command
that produces output after 10 ms, but uses a 5 ms timeout, so normally
the command will be killed before the output. The time intervals are so
small that the timeout may not reliably trigger before the output, which
can cause the test to fail.

This commit changes the test to only fail if the process is still alive
after 10 seconds. This means the test will confirm that the timeouts are
happening, but not attempt to gauge that the timeouts are happening
within milliseconds of when they are expected (which can't be done
reliably).

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2015-12-03 14:42:32 -08:00
..
checker Vendoring shakers library and update go-check 2015-10-17 14:28:08 +02:00
dockerCmd_utils.go Move dockerCmd… to pkg/integration… 2015-09-13 13:09:04 +02:00
dockerCmd_utils_test.go Adjust TestDockerCmdWithTimeout timeout to improve reliability 2015-12-03 14:42:32 -08:00
utils.go Fix TestDockerCmd*Timeout racey tests 2015-09-29 14:50:22 +02:00
utils_test.go Fixes 16556 CI failures 2015-09-24 11:19:00 -07:00