Skip to content

Commit

Permalink
Fix client connection test error handling
Browse files Browse the repository at this point in the history
Changed variable assignment in the test to fix error handling. This ensures the error is properly caught and reported during the client connection process.
  • Loading branch information
wneessen committed Oct 2, 2024
1 parent 9d70283 commit 761e205
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 @@ -620,7 +620,7 @@ func TestClient_DialWithContext(t *testing.T) {
t.Skipf("failed to create test client: %s. Skipping tests", err)
}
ctx := context.Background()
if err := c.DialWithContext(ctx); err != nil {
if err = c.DialWithContext(ctx); err != nil {
t.Errorf("failed to dial with context: %s", err)
return
}
Expand Down

0 comments on commit 761e205

Please sign in to comment.