Skip to content

Commit

Permalink
Use prefix naming for restart tests
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandr Morozov <lk4d4@docker.com>
  • Loading branch information
LK4D4 committed Sep 19, 2014
1 parent 00b82fc commit 1ddd013
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions integration-cli/docker_cli_restart_test.go
Expand Up @@ -7,7 +7,7 @@ import (
"time"
)

func TestDockerRestartStoppedContainer(t *testing.T) {
func TestRestartStoppedContainer(t *testing.T) {
runCmd := exec.Command(dockerBinary, "run", "-d", "busybox", "echo", "foobar")
out, _, err := runCommandWithOutput(runCmd)
errorOut(err, t, out)
Expand Down Expand Up @@ -43,7 +43,7 @@ func TestDockerRestartStoppedContainer(t *testing.T) {
logDone("restart - echo foobar for stopped container")
}

func TestDockerRestartRunningContainer(t *testing.T) {
func TestRestartRunningContainer(t *testing.T) {
runCmd := exec.Command(dockerBinary, "run", "-d", "busybox", "sh", "-c", "echo foobar && sleep 30 && echo 'should not print this'")
out, _, err := runCommandWithOutput(runCmd)
errorOut(err, t, out)
Expand Down Expand Up @@ -80,7 +80,7 @@ func TestDockerRestartRunningContainer(t *testing.T) {
}

// Test that restarting a container with a volume does not create a new volume on restart. Regression test for #819.
func TestDockerRestartWithVolumes(t *testing.T) {
func TestRestartWithVolumes(t *testing.T) {
runCmd := exec.Command(dockerBinary, "run", "-d", "-v", "/test", "busybox", "top")
out, _, err := runCommandWithOutput(runCmd)
errorOut(err, t, out)
Expand Down

0 comments on commit 1ddd013

Please sign in to comment.