controlclient, ipn: update tests for key pointer change

Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
This commit is contained in:
David Crawshaw
2020-02-11 04:52:50 -05:00
committed by David Crawshaw
parent 2f9cdd0aac
commit 33dfb8999e
3 changed files with 6 additions and 6 deletions

View File

@@ -190,7 +190,7 @@ func TestClientsReusingOldKey(t *testing.T) {
if err != nil {
t.Fatal(err)
}
return *k
return k
}
// Replace the previous key with a new key.
@@ -258,7 +258,7 @@ func TestClientsReusingOldKey(t *testing.T) {
// At this point, there should only be one node for the machine key
// registered as active in the server.
mkey := tailcfg.MachineKey(*persist1.PrivateMachineKey.Public())
mkey := tailcfg.MachineKey(persist1.PrivateMachineKey.Public())
nodeIDs, err := server.DB().MachineNodes(mkey)
if err != nil {
t.Fatal(err)