tstest/integration: use key.NodePublic instead of tailcfg.NodeKey.

Updates #3206

Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
David Anderson
2021-10-29 17:49:16 -07:00
parent 84c3a09a8d
commit 8d14bc32d1
2 changed files with 37 additions and 33 deletions

View File

@ -315,7 +315,7 @@ func TestAddPingRequest(t *testing.T) {
t.Fatalf("expected 1 node, got %d nodes", len(nodes))
}
nodeKey := nodes[0].Key
nodeKey := nodes[0].Key.AsNodePublic()
// Check that we get at least one ping reply after 10 tries.
for try := 1; try <= 10; try++ {