give ci more tollerance for timeouts

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
Kristoffer Dalby 2023-09-10 10:00:12 +02:00 committed by Kristoffer Dalby
parent 432e975a7f
commit 2434d76ade
5 changed files with 42 additions and 15 deletions

View file

@ -20,11 +20,12 @@ import (
)
const (
tsicHashLength = 6
defaultPingTimeout = 300 * time.Millisecond
defaultPingCount = 10
dockerContextPath = "../."
headscaleCertPath = "/usr/local/share/ca-certificates/headscale.crt"
tsicHashLength = 6
defaultPingTimeout = 300 * time.Millisecond
defaultPingCount = 10
dockerContextPath = "../."
headscaleCertPath = "/usr/local/share/ca-certificates/headscale.crt"
dockerExecuteTimeout = 60 * time.Second
)
var (
@ -361,7 +362,7 @@ func (t *TailscaleInContainer) Login(
)
}
if _, _, err := t.Execute(command); err != nil {
if _, _, err := t.Execute(command, dockertestutil.ExecuteCommandTimeout(dockerExecuteTimeout)); err != nil {
return fmt.Errorf(
"%s failed to join tailscale client (%s): %w",
t.hostname,