Reuse Ping function for DERP ping
This commit is contained in:
parent
b465592c07
commit
96f9680afd
3 changed files with 8 additions and 47 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue