From 49ec9943b923e85acc281fa7d85ccbb5f8c8e70e Mon Sep 17 00:00:00 2001 From: Adrien Raffin-Caboisse Date: Fri, 13 May 2022 12:14:11 +0200 Subject: [PATCH] fix: loop over result machines instead of startup machines --- integration_cli_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration_cli_test.go b/integration_cli_test.go index b413b787..55c42304 100644 --- a/integration_cli_test.go +++ b/integration_cli_test.go @@ -630,7 +630,7 @@ func (s *IntegrationCLITestSuite) TestNodeTagCommand() { assert.Nil(s.T(), err) json.Unmarshal([]byte(listAllResult), &resultMachines) found := false - for _, machine := range machines { + for _, machine := range resultMachines { if machine.ForcedTags != nil { for _, tag := range machine.ForcedTags { if tag == "tag:test" {