From c1f6ef07d46dbb70206c12b83ac72bed0e45fd8b Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Fri, 27 Sep 2024 17:09:00 +0200 Subject: [PATCH] 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. --- client_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client_test.go b/client_test.go index c764263..2d37ce0 100644 --- a/client_test.go +++ b/client_test.go @@ -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