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()