Browse code

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

Michael Crosby authored on 2014/06/03 03:54:23
Showing 1 changed files
... ...
@@ -43,8 +43,8 @@ func TestNoCpuStatFile(t *testing.T) {
43 43
 
44 44
 	cpu := &cpuGroup{}
45 45
 	err := cpu.GetStats(helper.CgroupData, &actualStats)
46
-	if err == nil {
47
-		t.Fatal("Expected to fail, but did not.")
46
+	if err != nil {
47
+		t.Fatal("Expected not to fail, but did")
48 48
 	}
49 49
 }
50 50