소스 검색

Merge pull request #6160 from crosbymichael/update-test-for-nil-error

Update cpu stat test for no error
Victor Vieux 11 년 전
부모
커밋
c136384b20
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      pkg/libcontainer/cgroups/fs/cpu_test.go

+ 2 - 2
pkg/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")
 	}
 }