mirror of
https://github.com/juanfont/headscale.git
synced 2025-09-20 17:53:11 +02:00
Corrected unit tests and integration tests
This commit is contained in:
parent
c49cf0f80f
commit
41aafbbb6d
@ -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),
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user