From acf7314587c49d7faacc2f354ced933085333d12 Mon Sep 17 00:00:00 2001 From: Nick Fagerlund Date: Thu, 19 Jan 2023 18:33:14 -0800 Subject: [PATCH] Fix typo in cloud backend's `TestCloud_setConfigurationFields` This was clearly wrong, but it was also harmless -- in the event of a failing test due to missing tags, they would get double-reported as both missing and unexpected. This commit separates out the reporting as intended. --- internal/cloud/backend_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cloud/backend_test.go b/internal/cloud/backend_test.go index 726c6363bc..ce4f5fe1ef 100644 --- a/internal/cloud/backend_test.go +++ b/internal/cloud/backend_test.go @@ -814,7 +814,7 @@ func TestCloud_setConfigurationFields(t *testing.T) { for _, actual := range b.WorkspaceMapping.Tags { if _, ok := expectedSet[actual]; !ok { - unexpected = append(missing, actual) + unexpected = append(unexpected, actual) } }