From a2ee3725a5dd1ad3dacf4098e15fbffe985fa248 Mon Sep 17 00:00:00 2001 From: "Guillaume J. Charmes" Date: Sun, 30 Mar 2014 16:00:04 -0700 Subject: [PATCH] Update test to be consistent Docker-DCO-1.1-Signed-off-by: Guillaume J. Charmes (github: creack) Upstream-commit: 7a50f03fa69fb81c27d361333fadbc9cccdd8948 Component: engine --- components/engine/integration/container_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/engine/integration/container_test.go b/components/engine/integration/container_test.go index 8ed5525c72..d3d35734ed 100644 --- a/components/engine/integration/container_test.go +++ b/components/engine/integration/container_test.go @@ -350,7 +350,7 @@ func TestStart(t *testing.T) { if !container.State.IsRunning() { 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") } @@ -385,7 +385,7 @@ func TestCpuShares(t *testing.T) { if !container.State.IsRunning() { 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") }