Pārlūkot izejas kodu

Update test to be consistent

Docker-DCO-1.1-Signed-off-by: Guillaume J. Charmes <guillaume@charmes.net> (github: creack)
Guillaume J. Charmes 11 gadi atpakaļ
vecāks
revīzija
7a50f03fa6
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      integration/container_test.go

+ 2 - 2
integration/container_test.go

@@ -350,7 +350,7 @@ func TestStart(t *testing.T) {
 	if !container.State.IsRunning() {
 	if !container.State.IsRunning() {
 		t.Errorf("Container should be running")
 		t.Errorf("Container should be running")
 	}
 	}
-	if err := container.Start(); err == nil {
+	if err := container.Start(); err != nil {
 		t.Fatalf("A running container should be able to be started")
 		t.Fatalf("A running container should be able to be started")
 	}
 	}
 
 
@@ -385,7 +385,7 @@ func TestCpuShares(t *testing.T) {
 	if !container.State.IsRunning() {
 	if !container.State.IsRunning() {
 		t.Errorf("Container should be running")
 		t.Errorf("Container should be running")
 	}
 	}
-	if err := container.Start(); err == nil {
+	if err := container.Start(); err != nil {
 		t.Fatalf("A running container should be able to be started")
 		t.Fatalf("A running container should be able to be started")
 	}
 	}