Skip to content

Commit

Permalink
Skip test cases when client creation fails
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
wneessen committed Sep 27, 2024
1 parent 6e98d7e commit c1f6ef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c1f6ef0

Please sign in to comment.