Browse code

Update test to be consistent

Docker-DCO-1.1-Signed-off-by: Guillaume J. Charmes <guillaume@charmes.net> (github: creack)

Guillaume J. Charmes authored on 2014/03/31 08:00:04
Showing 1 changed files
... ...
@@ -350,7 +350,7 @@ func TestStart(t *testing.T) {
350 350
 	if !container.State.IsRunning() {
351 351
 		t.Errorf("Container should be running")
352 352
 	}
353
-	if err := container.Start(); err == nil {
353
+	if err := container.Start(); err != nil {
354 354
 		t.Fatalf("A running container should be able to be started")
355 355
 	}
356 356
 
... ...
@@ -385,7 +385,7 @@ func TestCpuShares(t *testing.T) {
385 385
 	if !container.State.IsRunning() {
386 386
 		t.Errorf("Container should be running")
387 387
 	}
388
-	if err := container.Start(); err == nil {
388
+	if err := container.Start(); err != nil {
389 389
 		t.Fatalf("A running container should be able to be started")
390 390
 	}
391 391