|
@@ -16,7 +16,7 @@ func TestReadProcBool(t *testing.T) {
|
|
|
defer os.RemoveAll(tmpDir)
|
|
|
|
|
|
procFile := filepath.Join(tmpDir, "read-proc-bool")
|
|
|
- if err := ioutil.WriteFile(procFile, []byte("1"), 644); err != nil {
|
|
|
+ if err := ioutil.WriteFile(procFile, []byte("1"), 0644); err != nil {
|
|
|
t.Fatal(err)
|
|
|
}
|
|
|
|
|
@@ -24,7 +24,7 @@ func TestReadProcBool(t *testing.T) {
|
|
|
t.Fatal("expected proc bool to be true, got false")
|
|
|
}
|
|
|
|
|
|
- if err := ioutil.WriteFile(procFile, []byte("0"), 644); err != nil {
|
|
|
+ if err := ioutil.WriteFile(procFile, []byte("0"), 0644); err != nil {
|
|
|
t.Fatal(err)
|
|
|
}
|
|
|
if readProcBool(procFile) {
|
|
@@ -48,7 +48,7 @@ func TestCgroupEnabled(t *testing.T) {
|
|
|
t.Fatal("cgroupEnabled should be false")
|
|
|
}
|
|
|
|
|
|
- if err := ioutil.WriteFile(path.Join(cgroupDir, "test"), []byte{}, 644); err != nil {
|
|
|
+ if err := ioutil.WriteFile(path.Join(cgroupDir, "test"), []byte{}, 0644); err != nil {
|
|
|
t.Fatal(err)
|
|
|
}
|
|
|
|