diff --git a/integration/auth_web_flow_test.go b/integration/auth_web_flow_test.go index 39412e8c..df253246 100644 --- a/integration/auth_web_flow_test.go +++ b/integration/auth_web_flow_test.go @@ -335,7 +335,7 @@ func (s *AuthWebFlowScenario) runHeadscaleRegister(userStr string, loginURL *url if headscale, err := s.Headscale(); err == nil { _, err = headscale.Execute( - []string{"headscale", "-n", userStr, "nodes", "register", "--key", key}, + []string{"headscale", "nodes", "register", "--user", userStr, "--key", key}, ) if err != nil { log.Printf("failed to register node: %s", err)