mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-12 03:47:36 +00:00
Make sure all clients of a user are ready (#1335)
This commit is contained in:
@@ -356,6 +356,15 @@ func (s *Scenario) RunTailscaleUp(
|
||||
|
||||
user.joinWaitGroup.Wait()
|
||||
|
||||
for _, client := range user.Clients {
|
||||
err := client.WaitForReady()
|
||||
if err != nil {
|
||||
log.Printf("client %s was not ready: %s", client.Hostname(), err)
|
||||
|
||||
return fmt.Errorf("failed to up tailscale node: %w", err)
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user