mirror of
https://github.com/wneessen/go-mail.git
synced 2024-11-21 21:30:50 +01:00
Skip test cases when client creation fails
Updated the client creation check to skip test cases if the client cannot be created, instead of marking them as errors. This ensures tests dependent on a successful client creation do not fail unnecessarily but are instead skipped.
This commit is contained in:
parent
6e98d7e47d
commit
c1f6ef07d4
1 changed files with 1 additions and 1 deletions
|
@ -1735,7 +1735,7 @@ func TestClient_DialSendConcurrent_online(t *testing.T) {
|
|||
|
||||
client, err := getTestConnection(true)
|
||||
if err != nil {
|
||||
t.Errorf("unable to create new client: %s", err)
|
||||
t.Skipf("failed to create test client: %s. Skipping tests", err)
|
||||
}
|
||||
|
||||
var messages []*Msg
|
||||
|
|
Loading…
Reference in a new issue