Reuse Ping function for DERP ping

This commit is contained in:
Juan Font 2023-04-23 11:41:23 +00:00
parent b465592c07
commit 96f9680afd
3 changed files with 8 additions and 47 deletions

View file

@ -40,10 +40,11 @@ func pingDerpAllHelper(t *testing.T, clients []TailscaleClient, addrs []string)
continue
}
err := client.PingViaDERP(
err := client.Ping(
addr,
tsic.WithPingTimeout(derpPingTimeout),
tsic.WithPingCount(derpPingCount),
tsic.WithPingUntilDirect(false),
)
if err != nil {
t.Errorf("failed to ping %s from %s: %s", addr, client.Hostname(), err)