Make sure all clients of a user are ready (#1335)

This commit is contained in:
Juan Font authored and GitHub committed 2023-04-12 09:25:51 +02:00
1 parent d0b3b1bfc4
commit 9836b097a4
4 files changed
+36

No files matched your search

+9
View File
@@ -274,6 +274,15 @@ func (s *AuthWebFlowScenario) 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
}