Prechádzať zdrojové kódy

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)
unclejack 11 rokov pred
rodič
commit
63e28cc363
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      integration-cli/docker_cli_rm_test.go

+ 1 - 1
integration-cli/docker_cli_rm_test.go

@@ -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)
 	}