From ad3c36fd07035276dee995b03437ce0aea7ca380 Mon Sep 17 00:00:00 2001 From: Juan Font Alonso Date: Sun, 13 Nov 2022 13:12:32 +0100 Subject: [PATCH] Wait for the tailscale clients to be ready in the web auth CreateHeadscaleEnv Signed-off-by: Juan Font Alonso --- integration/auth_web_flow_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/integration/auth_web_flow_test.go b/integration/auth_web_flow_test.go index 9628bb28..4dc7546e 100644 --- a/integration/auth_web_flow_test.go +++ b/integration/auth_web_flow_test.go @@ -129,6 +129,12 @@ func (s *AuthWebFlowScenario) runTailscaleUp( if err != nil { log.Printf("failed to register client: %s", err) } + + err = c.WaitForReady() + if err != nil { + log.Printf("error waiting for client %s to be ready: %s", c.Hostname(), err) + } + }(client) } namespace.joinWaitGroup.Wait()