Signed-off-by: Alexandr Morozov <lk4d4@docker.com>
| ... | ... |
@@ -7,7 +7,7 @@ import ( |
| 7 | 7 |
"time" |
| 8 | 8 |
) |
| 9 | 9 |
|
| 10 |
-func TestDockerRestartStoppedContainer(t *testing.T) {
|
|
| 10 |
+func TestRestartStoppedContainer(t *testing.T) {
|
|
| 11 | 11 |
runCmd := exec.Command(dockerBinary, "run", "-d", "busybox", "echo", "foobar") |
| 12 | 12 |
out, _, err := runCommandWithOutput(runCmd) |
| 13 | 13 |
errorOut(err, t, out) |
| ... | ... |
@@ -43,7 +43,7 @@ func TestDockerRestartStoppedContainer(t *testing.T) {
|
| 43 | 43 |
logDone("restart - echo foobar for stopped container")
|
| 44 | 44 |
} |
| 45 | 45 |
|
| 46 |
-func TestDockerRestartRunningContainer(t *testing.T) {
|
|
| 46 |
+func TestRestartRunningContainer(t *testing.T) {
|
|
| 47 | 47 |
runCmd := exec.Command(dockerBinary, "run", "-d", "busybox", "sh", "-c", "echo foobar && sleep 30 && echo 'should not print this'") |
| 48 | 48 |
out, _, err := runCommandWithOutput(runCmd) |
| 49 | 49 |
errorOut(err, t, out) |
| ... | ... |
@@ -80,7 +80,7 @@ func TestDockerRestartRunningContainer(t *testing.T) {
|
| 80 | 80 |
} |
| 81 | 81 |
|
| 82 | 82 |
// Test that restarting a container with a volume does not create a new volume on restart. Regression test for #819. |
| 83 |
-func TestDockerRestartWithVolumes(t *testing.T) {
|
|
| 83 |
+func TestRestartWithVolumes(t *testing.T) {
|
|
| 84 | 84 |
runCmd := exec.Command(dockerBinary, "run", "-d", "-v", "/test", "busybox", "top") |
| 85 | 85 |
out, _, err := runCommandWithOutput(runCmd) |
| 86 | 86 |
errorOut(err, t, out) |