Browse Source

Update cpu stat test for no error
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)

Michael Crosby 11 years ago
parent
commit
30fdac2cb1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      pkg/libcontainer/cgroups/fs/cpu_test.go

+ 2 - 2
pkg/libcontainer/cgroups/fs/cpu_test.go

@@ -43,8 +43,8 @@ func TestNoCpuStatFile(t *testing.T) {
 
 
 	cpu := &cpuGroup{}
 	cpu := &cpuGroup{}
 	err := cpu.GetStats(helper.CgroupData, &actualStats)
 	err := cpu.GetStats(helper.CgroupData, &actualStats)
-	if err == nil {
-		t.Fatal("Expected to fail, but did not.")
+	if err != nil {
+		t.Fatal("Expected not to fail, but did")
 	}
 	}
 }
 }