Added DERP integration tests
Linting fixes Set listen addr to :8443
This commit is contained in:
parent
549f5a164d
commit
eacd687dbf
4 changed files with 259 additions and 16 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue