mirror of
https://github.com/wneessen/go-mail.git
synced 2024-11-15 02:12:55 +01:00
Clean up redundant error checks in msg_nowin_test.go
Removed unnecessary assertions for specific error types in test cases. This streamlines the tests, maintaining focus on the primary failure conditions without checking the error type.
This commit is contained in:
parent
3be41b1aea
commit
eed3dec7d6
1 changed files with 0 additions and 6 deletions
|
@ -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)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue