mirror of
https://github.com/wneessen/go-mail.git
synced 2024-12-22 18:50:37 +01:00
Fix timeout message in client_test.go
Updated the skip message to accurately reflect the timeout reason when closing the test server connection. This improves the clarity of the error reporting in tests.
This commit is contained in:
parent
b510d2654c
commit
78ee1a2a81
1 changed files with 1 additions and 1 deletions
|
@ -2581,7 +2581,7 @@ func TestClient_Send(t *testing.T) {
|
|||
if err := client.Close(); err != nil {
|
||||
var netErr net.Error
|
||||
if errors.As(err, &netErr) && netErr.Timeout() {
|
||||
t.Skip("failed to connect to the test server due to timeout")
|
||||
t.Skip("failed to close the test server connection due to timeout")
|
||||
}
|
||||
t.Errorf("failed to close client: %s", err)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue