mirror of
https://github.com/juanfont/headscale.git
synced 2025-09-11 17:53:10 +02:00
Corrected unit tests and integration tests
This commit is contained in:
parent
ed1042076a
commit
a446f63744
@ -202,8 +202,7 @@ func (s *Suite) TestListPeersWithoutNonAuthorized(c *check.C) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
node := types.Node{
|
node := types.Node{
|
||||||
// nolint:G115
|
ID: types.NodeID(uint64(index)), // nolint:G115
|
||||||
ID: types.NodeID(uint64(index)),
|
|
||||||
MachineKey: machineKey.Public(),
|
MachineKey: machineKey.Public(),
|
||||||
NodeKey: nodeKey.Public(),
|
NodeKey: nodeKey.Public(),
|
||||||
Hostname: "testnode" + strconv.Itoa(index),
|
Hostname: "testnode" + strconv.Itoa(index),
|
||||||
|
@ -1303,7 +1303,7 @@ func TestNodeApproveCommand(t *testing.T) {
|
|||||||
strconv.FormatUint(listAll[idx].GetId(), 10),
|
strconv.FormatUint(listAll[idx].GetId(), 10),
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
assert.NoError(t, err)
|
assertNoErr(t, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
var listAllAfterApprove []v1.Node
|
var listAllAfterApprove []v1.Node
|
||||||
@ -1318,7 +1318,7 @@ func TestNodeApproveCommand(t *testing.T) {
|
|||||||
},
|
},
|
||||||
&listAllAfterApprove,
|
&listAllAfterApprove,
|
||||||
)
|
)
|
||||||
assert.NoError(t, err)
|
assertNoErr(t, err)
|
||||||
|
|
||||||
assert.Len(t, listAllAfterApprove, 5)
|
assert.Len(t, listAllAfterApprove, 5)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user