From 3ee142c3e4038d09c56a4baf48351c45217307a8 Mon Sep 17 00:00:00 2001 From: gempir Date: Fri, 27 Sep 2024 22:20:39 +0200 Subject: [PATCH] fix test --- client_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client_test.go b/client_test.go index 414de38..b1527ba 100644 --- a/client_test.go +++ b/client_test.go @@ -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") } }()