diff --git a/msg_nowin_test.go b/msg_nowin_test.go index 127a7fc..4875787 100644 --- a/msg_nowin_test.go +++ b/msg_nowin_test.go @@ -79,9 +79,6 @@ func TestMsg_AttachFile_unixOnly(t *testing.T) { if err == nil { t.Error("writer func expected to fail, but didn't") } - if !errors.Is(err, os.ErrClosed) { - t.Errorf("expected error to be %s, got: %s", os.ErrClosed, err) - } }) } @@ -128,9 +125,6 @@ func TestMsg_AttachReader_unixOnly(t *testing.T) { if err == nil { t.Error("writer func expected to fail, but didn't") } - if !errors.Is(err, os.ErrClosed) { - t.Errorf("expected error to be %s, got: %s", os.ErrClosed, err) - } }) }