diff --git a/integration/tsic/tsic.go b/integration/tsic/tsic.go index 16e6868f..712ad34d 100644 --- a/integration/tsic/tsic.go +++ b/integration/tsic/tsic.go @@ -176,6 +176,19 @@ func (t *TailscaleInContainer) Version() string { return t.version } +func (t *TailscaleInContainer) WaitForReady() error { + return t.pool.Retry(func() error { + // If tailscaled has not started yet, this will return a non-zero + // status code + _, err := t.Execute([]string{"tailscale", "status"}) + if err != nil { + return err + } + + return nil + }) +} + func (t *TailscaleInContainer) Execute( command []string, ) (string, string, error) {