Skip to content

Commit 2b6665a

Browse files
remo-labremo-lab
authored andcommitted
fix(test): check os.WriteFile error in fileutil test
Signed-off-by: remo-lab <[email protected]>
1 parent be1959b commit 2b6665a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/fileutil/fileutil_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func TestFileExists(t *testing.T) {
5151

5252
file := filepath.Join(testPath, "empty-file")
5353
contents := []byte("some random contents")
54-
os.WriteFile(file, contents, 0o644)
54+
require.NoError(t, os.WriteFile(file, contents, 0o644))
5555
exists, size, err := FileExists(file)
5656
require.NoError(t, err)
5757
require.True(t, exists)

0 commit comments

Comments
 (0)