mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-04 04:31:28 +00:00
make TestRemoveContainerRunning handle signals
This lowers the test execution time by about 5 seconds. Docker-DCO-1.1-Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com> (github: unclejack)
This commit is contained in:
@@ -43,7 +43,7 @@ func TestRemoveContainerWithVolume(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestRemoveContainerRunning(t *testing.T) {
|
||||
cmd := exec.Command(dockerBinary, "run", "-d", "--name", "foo", "busybox", "sleep", "300")
|
||||
cmd := exec.Command(dockerBinary, "run", "-dt", "--name", "foo", "busybox", "top")
|
||||
if _, err := runCommand(cmd); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user