Move TS WaitForReady outside up goroutine

This commit is contained in:
Juan Font authored and Juan Font committed 2022-11-19 17:16:08 +01:00
1 parent 751cc173d4
commit f90a3c196c
1 file changed
+5 -5
+5 -5
View File
@@ -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()