diff --git a/msg_nowin_test.go b/msg_nowin_test.go index 1964b41..127a7fc 100644 --- a/msg_nowin_test.go +++ b/msg_nowin_test.go @@ -27,7 +27,7 @@ func TestMsg_AttachFile_unixOnly(t *testing.T) { t.Errorf("failed to remove temp file: %s", err) } }) - if err = os.Chmod(tempfile.Name(), 0000); err != nil { + if err = os.Chmod(tempfile.Name(), 0o000); err != nil { t.Fatalf("failed to chmod temp file to 0000: %s", err) } message := NewMsg()