From f90a3c196c9f455a916e31d49bf3b928270c3324 Mon Sep 17 00:00:00 2001 From: Juan Font Date: Sat, 19 Nov 2022 13:35:34 +0000 Subject: [PATCH] Move TS WaitForReady outside up goroutine --- integration/auth_web_flow_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/integration/auth_web_flow_test.go b/integration/auth_web_flow_test.go index f65a76de..c91b29e3 100644 --- a/integration/auth_web_flow_test.go +++ b/integration/auth_web_flow_test.go @@ -134,12 +134,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) + + err := client.WaitForReady() + if err != nil { + log.Printf("error waiting for client %s to be ready: %s", client.Hostname(), err) + } } namespace.joinWaitGroup.Wait()