From de52f626b93b0260f7429f7b616b4d1d4f784693 Mon Sep 17 00:00:00 2001 From: Sir Darkrengarius Date: Mon, 12 Aug 2019 15:44:25 +0300 Subject: [PATCH] Add some fixes --- pkg/setup/node_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/setup/node_test.go b/pkg/setup/node_test.go index 1663de2dcf..5a8c8128c7 100644 --- a/pkg/setup/node_test.go +++ b/pkg/setup/node_test.go @@ -84,7 +84,6 @@ func TestNode(t *testing.T) { // TEST: Emulates the communication between 4 visor nodes and a setup node, // where the first client node initiates a loop to the last. t.Run("CreateLoop", func(t *testing.T) { - // client index 0 is for setup node. // clients index 1 to 4 are for visor nodes. clients, closeClients := prepClients(5) @@ -160,8 +159,8 @@ func TestNode(t *testing.T) { require.Equal(t, expRule, r.Type()) } - // TODO: This error is not checked due to a bug in dmsg. - _ = proto.WritePacket(RespSuccess, nil) //nolint:errcheck + err = proto.WritePacket(RespSuccess, nil) + require.NoError(t, err) } // CLOSURE: emulates how a visor node should react when expecting an ConfirmLoop packet.