diff --git a/libcontainer/cgroups/fs/cpu_test.go b/libcontainer/cgroups/fs/cpu_test.go index ad06740..c5bfc50 100644 --- a/libcontainer/cgroups/fs/cpu_test.go +++ b/libcontainer/cgroups/fs/cpu_test.go @@ -43,8 +43,8 @@ func TestNoCpuStatFile(t *testing.T) { cpu := &cpuGroup{} 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") } }