Move TS WaitForReady outside up goroutine
@@ -134,12 +134,12 @@ func (s *AuthWebFlowScenario) runTailscaleUp(
if err != nil {
log.Printf("failed to register client: %s", err)
}
+ }(client)
- err = c.WaitForReady()
+ err := client.WaitForReady()
if err != nil {
- log.Printf("error waiting for client %s to be ready: %s", c.Hostname(), err)
+ log.Printf("error waiting for client %s to be ready: %s", client.Hostname(), err)
}
- }(client)
}
namespace.joinWaitGroup.Wait()
