Update cpu stat test for no error
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael) Upstream-commit: 30fdac2cb1bd5461972cef6efa3d67270db23491 Component: engine
This commit is contained in:
@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user