Added DERP integration tests

Linting fixes

Set listen addr to :8443
This commit is contained in:
Juan Font 2023-04-13 21:10:47 +00:00
parent 549f5a164d
commit eacd687dbf
4 changed files with 259 additions and 16 deletions

View file

@ -499,15 +499,6 @@ type (
}
)
type (
DERPPingOption = func(args *derpPingArgs)
derpPingArgs struct {
timeout time.Duration
count int
}
)
// WithPingTimeout sets the timeout for the ping command.
func WithPingTimeout(timeout time.Duration) PingOption {
return func(args *pingArgs) {
@ -605,7 +596,7 @@ func (t *TailscaleInContainer) PingViaDERP(hostnameOrIP string, opts ...PingOpti
),
)
if err != nil {
fmt.Printf(
log.Printf(
"failed to run ping command from %s to %s, err: %s",
t.Hostname(),
hostnameOrIP,