mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-05 05:01:28 +00:00
Merge pull request #6160 from crosbymichael/update-test-for-nil-error
Update cpu stat test for no error
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