Jelajahi Sumber

fix tests regarding the new test image

Victor Vieux 12 tahun lalu
induk
melakukan
a8a6848ce0
1 mengubah file dengan 4 tambahan dan 4 penghapusan
  1. 4 4
      api_test.go

+ 4 - 4
api_test.go

@@ -482,12 +482,12 @@ func TestGetContainersTop(t *testing.T) {
 		t.Fatalf("Expected 2 processes, found %d.", len(procs))
 		t.Fatalf("Expected 2 processes, found %d.", len(procs))
 	}
 	}
 
 
-	if procs[0].Cmd != "sh" && procs[0].Cmd != "exe" {
-		t.Fatalf("Expected `sleep` or `sh`, found %s.", procs[0].Cmd)
+	if procs[0].Cmd != "sh" && procs[0].Cmd != "busybox" {
+		t.Fatalf("Expected `busybox` or `sh`, found %s.", procs[0].Cmd)
 	}
 	}
 
 
-	if procs[1].Cmd != "sh" && procs[1].Cmd != "exe" {
-		t.Fatalf("Expected `sleep` or `sh`, found %s.", procs[1].Cmd)
+	if procs[1].Cmd != "sh" && procs[1].Cmd != "busybox" {
+		t.Fatalf("Expected `busybox` or `sh`, found %s.", procs[1].Cmd)
 	}
 	}
 }
 }