Explorar o código

Merge pull request #1021 from errnoh/fix-test-filled-tmpfs

TestKill and TestMultipleContainers: run sleep instead of cat /bin/zero....
Guillaume J. Charmes %!s(int64=12) %!d(string=hai) anos
pai
achega
5cdbd2ed7a
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      container_test.go

+ 3 - 3
container_test.go

@@ -588,7 +588,7 @@ func TestKill(t *testing.T) {
 	defer nuke(runtime)
 	defer nuke(runtime)
 	container, err := NewBuilder(runtime).Create(&Config{
 	container, err := NewBuilder(runtime).Create(&Config{
 		Image: GetTestImage(runtime).ID,
 		Image: GetTestImage(runtime).ID,
-		Cmd:   []string{"cat", "/dev/zero"},
+		Cmd:   []string{"sleep", "2"},
 	},
 	},
 	)
 	)
 	if err != nil {
 	if err != nil {
@@ -897,7 +897,7 @@ func TestMultipleContainers(t *testing.T) {
 
 
 	container1, err := builder.Create(&Config{
 	container1, err := builder.Create(&Config{
 		Image: GetTestImage(runtime).ID,
 		Image: GetTestImage(runtime).ID,
-		Cmd:   []string{"cat", "/dev/zero"},
+		Cmd:   []string{"sleep", "2"},
 	},
 	},
 	)
 	)
 	if err != nil {
 	if err != nil {
@@ -907,7 +907,7 @@ func TestMultipleContainers(t *testing.T) {
 
 
 	container2, err := builder.Create(&Config{
 	container2, err := builder.Create(&Config{
 		Image: GetTestImage(runtime).ID,
 		Image: GetTestImage(runtime).ID,
-		Cmd:   []string{"cat", "/dev/zero"},
+		Cmd:   []string{"sleep", "2"},
 	},
 	},
 	)
 	)
 	if err != nil {
 	if err != nil {