modify the test to reflect the changes on the webinterface

related to 2d44a1c99c17

Signed-off-by: Christian Heusel <christian@heusel.eu>
This commit is contained in:
Christian Heusel 2023-01-23 13:55:30 +01:00 committed by Kristoffer Dalby
parent 9714900db9
commit 9f6e546522

View File

@ -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)