From 41aafbbb6d4320a3932ad2d24f3220921d2ffc59 Mon Sep 17 00:00:00 2001 From: hopleus Date: Thu, 17 Oct 2024 14:24:54 +0300 Subject: [PATCH] Corrected unit tests and integration tests --- hscontrol/db/node_test.go | 3 +-- integration/cli_test.go | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/hscontrol/db/node_test.go b/hscontrol/db/node_test.go index db941b0b..9307fb33 100644 --- a/hscontrol/db/node_test.go +++ b/hscontrol/db/node_test.go @@ -203,8 +203,7 @@ func (s *Suite) TestListPeersWithoutNonAuthorized(c *check.C) { } node := types.Node{ - // nolint:G115 - ID: types.NodeID(uint64(index)), + ID: types.NodeID(uint64(index)), // nolint:G115 MachineKey: machineKey.Public(), NodeKey: nodeKey.Public(), Hostname: "testnode" + strconv.Itoa(index), diff --git a/integration/cli_test.go b/integration/cli_test.go index 375eaaa8..521b6e2b 100644 --- a/integration/cli_test.go +++ b/integration/cli_test.go @@ -1272,7 +1272,7 @@ func TestNodeApproveCommand(t *testing.T) { strconv.FormatUint(listAll[idx].GetId(), 10), }, ) - assert.NoError(t, err) + assertNoErr(t, err) } var listAllAfterApprove []v1.Node @@ -1287,7 +1287,7 @@ func TestNodeApproveCommand(t *testing.T) { }, &listAllAfterApprove, ) - assert.NoError(t, err) + assertNoErr(t, err) assert.Len(t, listAllAfterApprove, 5)