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:
Winni Neessen 2024-09-27 17:09:00 +02:00
parent 6e98d7e47d
commit c1f6ef07d4
Signed by: wneessen
GPG key ID: 385AC9889632126E

View file

@ -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