Closes #33484.
Signed-off-by: Tim Potter <tpot@hpe.com>
| ... | ... |
@@ -61,7 +61,7 @@ func TestPollerEvent(t *testing.T) {
|
| 61 | 61 |
default: |
| 62 | 62 |
} |
| 63 | 63 |
|
| 64 |
- if err := ioutil.WriteFile(f.Name(), []byte("hello"), 644); err != nil {
|
|
| 64 |
+ if err := ioutil.WriteFile(f.Name(), []byte("hello"), 0644); err != nil {
|
|
| 65 | 65 |
t.Fatal(err) |
| 66 | 66 |
} |
| 67 | 67 |
if err := assertEvent(w, fsnotify.Write); err != nil {
|
| ... | ... |
@@ -16,7 +16,7 @@ func TestReadProcBool(t *testing.T) {
|
| 16 | 16 |
defer os.RemoveAll(tmpDir) |
| 17 | 17 |
|
| 18 | 18 |
procFile := filepath.Join(tmpDir, "read-proc-bool") |
| 19 |
- if err := ioutil.WriteFile(procFile, []byte("1"), 644); err != nil {
|
|
| 19 |
+ if err := ioutil.WriteFile(procFile, []byte("1"), 0644); err != nil {
|
|
| 20 | 20 |
t.Fatal(err) |
| 21 | 21 |
} |
| 22 | 22 |
|
| ... | ... |
@@ -24,7 +24,7 @@ func TestReadProcBool(t *testing.T) {
|
| 24 | 24 |
t.Fatal("expected proc bool to be true, got false")
|
| 25 | 25 |
} |
| 26 | 26 |
|
| 27 |
- if err := ioutil.WriteFile(procFile, []byte("0"), 644); err != nil {
|
|
| 27 |
+ if err := ioutil.WriteFile(procFile, []byte("0"), 0644); err != nil {
|
|
| 28 | 28 |
t.Fatal(err) |
| 29 | 29 |
} |
| 30 | 30 |
if readProcBool(procFile) {
|
| ... | ... |
@@ -48,7 +48,7 @@ func TestCgroupEnabled(t *testing.T) {
|
| 48 | 48 |
t.Fatal("cgroupEnabled should be false")
|
| 49 | 49 |
} |
| 50 | 50 |
|
| 51 |
- if err := ioutil.WriteFile(path.Join(cgroupDir, "test"), []byte{}, 644); err != nil {
|
|
| 51 |
+ if err := ioutil.WriteFile(path.Join(cgroupDir, "test"), []byte{}, 0644); err != nil {
|
|
| 52 | 52 |
t.Fatal(err) |
| 53 | 53 |
} |
| 54 | 54 |
|