Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
gempir committed Sep 27, 2024
1 parent 18c1f33 commit 3ee142c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,8 @@ func TestCanConnectAndAuthenticate(t *testing.T) {
connectAndEnsureGoodDisconnect(t, client)
defer func() {
err := client.Disconnect()
if err != nil {
t.Error(err)
if err == nil {
t.Error(err, "connection should not be open")
}
}()

Expand Down

0 comments on commit 3ee142c

Please sign in to comment.