From c1309102bc6197a0da04e10441a73912ca947090 Mon Sep 17 00:00:00 2001 From: Dave Johnston Date: Wed, 16 Dec 2020 14:00:24 +0000 Subject: [PATCH] fix: bad tests --- tcp_server_mock.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tcp_server_mock.go b/tcp_server_mock.go index b74df04..ea726f9 100644 --- a/tcp_server_mock.go +++ b/tcp_server_mock.go @@ -131,7 +131,7 @@ func respondToIQ(t *testing.T, sc *ServerConn) { // Decoder to parse the request iqReq, err := receiveIq(sc) if err != nil { - t.Fatalf("failed to receive IQ : %w", err.Error()) + t.Fatalf("failed to receive IQ : %s", err.Error()) } if vld, _ := iqReq.IsValid(); !vld { @@ -183,7 +183,7 @@ func discardPresence(t *testing.T, sc *ServerConn) { err = xml.Unmarshal(recvBuf, &presenceStz) if err != nil { - t.Errorf("Expected presence but this happened : %w", err.Error()) + t.Errorf("Expected presence but this happened : %w", err) } }