Wait for tailscale client to be ready after tailscale up

This commit is contained in:
Juan Font Alonso authored and Juan Font committed 2022-11-13 18:30:00 +01:00
1 parent cb2790984f
commit 9989657c0f
1 file changed
+6
+6
View File
@@ -258,7 +258,13 @@ func (s *Scenario) RunTailscaleUp(
// TODO(kradalby): error handle this
_ = c.Up(loginServer, authKey)
}(client)
err := client.WaitForReady()
if err != nil {
log.Printf("error waiting for client %s to be ready: %s", client.Hostname(), err)
}
}
namespace.joinWaitGroup.Wait()
return nil