diff --git a/pkg/rpc/server/server_test.go b/pkg/rpc/server/server_test.go index f7f5eb87c..adc1d7cd0 100644 --- a/pkg/rpc/server/server_test.go +++ b/pkg/rpc/server/server_test.go @@ -974,6 +974,7 @@ func doRPCCallOverWS(rpcCall string, url string, t *testing.T) []byte { c.SetReadDeadline(time.Now().Add(time.Second)) _, body, err := c.ReadMessage() require.NoError(t, err) + require.NoError(t, c.Close()) return bytes.TrimSpace(body) }