Make sure all clients of a user are ready (#1335)
This commit is contained in:
parent
d0b3b1bfc4
commit
9836b097a4
4 changed files with 36 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue