| ... | ... |
@@ -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 |
|