From 60001dbe15b5ff0fec32239ad18b3d308a4150b5 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Thu, 24 Jun 2021 17:09:21 +0300 Subject: - Linters fix Signed-off-by: Valery Piashchynski --- tests/plugins/websockets/websocket_plugin_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/plugins/websockets/websocket_plugin_test.go b/tests/plugins/websockets/websocket_plugin_test.go index 40f37e89..53b6a572 100644 --- a/tests/plugins/websockets/websocket_plugin_test.go +++ b/tests/plugins/websockets/websocket_plugin_test.go @@ -667,9 +667,9 @@ func RPCWsPubAsync(port string) func(t *testing.T) { messagesToVerify = append(messagesToVerify, `{"topic":"foo2","payload":"hello, PHP2"}`) i := 0 for { - _, msg, err := c.ReadMessage() + _, msg, err2 := c.ReadMessage() retMsg := utils.AsString(msg) - assert.NoError(t, err) + assert.NoError(t, err2) assert.Equal(t, messagesToVerify[i], retMsg) i++ if i == 3 { @@ -744,9 +744,9 @@ func RPCWsPub(port string) func(t *testing.T) { messagesToVerify = append(messagesToVerify, `{"topic":"foo2","payload":"hello, PHP2"}`) i := 0 for { - _, msg, err := c.ReadMessage() + _, msg, err2 := c.ReadMessage() retMsg := utils.AsString(msg) - assert.NoError(t, err) + assert.NoError(t, err2) assert.Equal(t, messagesToVerify[i], retMsg) i++ if i == 3 { -- cgit v1.2.3