mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-26 08:53:05 +00:00
Corrected unit tests and integration tests
This commit is contained in:
parent
ed1042076a
commit
a446f63744
2 changed files with 3 additions and 4 deletions
|
@ -202,8 +202,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),
|
||||
|
|
|
@ -1303,7 +1303,7 @@ func TestNodeApproveCommand(t *testing.T) {
|
|||
strconv.FormatUint(listAll[idx].GetId(), 10),
|
||||
},
|
||||
)
|
||||
assert.NoError(t, err)
|
||||
assertNoErr(t, err)
|
||||
}
|
||||
|
||||
var listAllAfterApprove []v1.Node
|
||||
|
@ -1318,7 +1318,7 @@ func TestNodeApproveCommand(t *testing.T) {
|
|||
},
|
||||
&listAllAfterApprove,
|
||||
)
|
||||
assert.NoError(t, err)
|
||||
assertNoErr(t, err)
|
||||
|
||||
assert.Len(t, listAllAfterApprove, 5)
|
||||
|
||||
|
|
Loading…
Reference in a new issue