Merge pull request #6160 from crosbymichael/update-test-for-nil-error
Update cpu stat test for no error
This commit is contained in:
commit
41bdc33843
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
if err != nil {
|
||||||
t.Fatal("Expected to fail, but did not.")
|
t.Fatal("Expected not to fail, but did")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue