various: remove remaining uses of key.NewPrivate.

Updates #3206

Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
David Anderson
2021-10-29 15:00:57 -07:00
parent ccd36cb5b1
commit eeb97fd89f
4 changed files with 6 additions and 6 deletions

View File

@@ -90,7 +90,7 @@ func TestLocalLogLines(t *testing.T) {
TxBytes: 10,
RxBytes: 10,
LastHandshake: time.Now(),
NodeKey: tailcfg.NodeKey(key.NewPrivate()),
NodeKey: tailcfg.NodeKeyFromNodePublic(key.NewNode().Public()),
}},
})
lb.mu.Unlock()
@@ -105,7 +105,7 @@ func TestLocalLogLines(t *testing.T) {
TxBytes: 11,
RxBytes: 12,
LastHandshake: time.Now(),
NodeKey: tailcfg.NodeKey(key.NewPrivate()),
NodeKey: tailcfg.NodeKeyFromNodePublic(key.NewNode().Public()),
}},
})
lb.mu.Unlock()