From 9989657c0ff95883f0a7a0ad6d552f332ea1e4a8 Mon Sep 17 00:00:00 2001 From: Juan Font Alonso Date: Sun, 13 Nov 2022 16:58:20 +0100 Subject: [PATCH] Wait for tailscale client to be ready after tailscale up --- integration/scenario.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/integration/scenario.go b/integration/scenario.go index e090e5b9..8ebcadb8 100644 --- a/integration/scenario.go +++ b/integration/scenario.go @@ -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