From d96ccf81755c72388b1e68a5cc3ce830534ee90b Mon Sep 17 00:00:00 2001 From: Manabu Mccloskey Date: Wed, 25 Oct 2023 16:28:55 -0700 Subject: [PATCH] fix argocd controller tests Signed-off-by: Manabu Mccloskey --- pkg/controllers/localbuild/argo_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/controllers/localbuild/argo_test.go b/pkg/controllers/localbuild/argo_test.go index 276ccfed..cda3a192 100644 --- a/pkg/controllers/localbuild/argo_test.go +++ b/pkg/controllers/localbuild/argo_test.go @@ -11,12 +11,12 @@ func TestGetRawInstallResources(t *testing.T) { if err != nil { t.Fatalf("GetRawInstallResources() error: %v", err) } - if len(resources) != 2 { + if len(resources) != 1 { t.Fatalf("GetRawInstallResources() resources len != 1, got %d", len(resources)) } resourcePrefix := "# UCP ARGO INSTALL RESOURCES\n" - checkPrefix := resources[1][0:len(resourcePrefix)] + checkPrefix := resources[0][0:len(resourcePrefix)] if resourcePrefix != string(checkPrefix) { t.Fatalf("GetRawInstallResources() exptected 1 resource with prefix %q, got %q", resourcePrefix, checkPrefix) } @@ -28,7 +28,7 @@ func TestGetK8sInstallResources(t *testing.T) { t.Fatalf("GetK8sInstallResources() error: %v", err) } - if len(objs) != 57 { + if len(objs) != 55 { t.Fatalf("Expected 57 Argo Install Resources, got: %d", len(objs)) } }