Added DERP integration tests

Linting fixes

Set listen addr to :8443
This commit is contained in:
Juan Font committed 2023-04-24 12:17:24 +02:00
1 parent 549f5a164d
commit eacd687dbf
4 files changed
+259 -16

No files matched your search

+1 -10
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,