Reuse Ping function for DERP ping

This commit is contained in:
Juan Font committed 2023-04-24 12:17:24 +02:00
1 parent b465592c07
commit 96f9680afd
3 files changed
+8 -47

No files matched your search

+2 -1
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)