From cc3fb7130953b224c5c40bd39e82d3610dfee452 Mon Sep 17 00:00:00 2001 From: Noam Gal Date: Fri, 4 Oct 2024 16:14:07 +0300 Subject: [PATCH] fixed tests Signed-off-by: Noam Gal --- cmd/commands/project_test.go | 2 +- pkg/fs/fs_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/commands/project_test.go b/cmd/commands/project_test.go index 421a8e97..4888da8f 100644 --- a/cmd/commands/project_test.go +++ b/cmd/commands/project_test.go @@ -276,7 +276,7 @@ func Test_getInstallationNamespace(t *testing.T) { _ = billyUtils.WriteFile(repofs, filepath.Join(store.Default.BootsrtrapDir, store.Default.ArgoCDName+".yaml"), []byte("some string"), 0666) return repofs }, - wantErr: "failed to unmarshal namespace: error unmarshaling JSON: json: cannot unmarshal string into Go value of type v1alpha1.Application", + wantErr: "failed to unmarshal namespace: error unmarshaling JSON: while decoding JSON: json: cannot unmarshal string into Go value of type v1alpha1.Application", }, } for ttName, tt := range tests { diff --git a/pkg/fs/fs_test.go b/pkg/fs/fs_test.go index 496a8921..3b3055d8 100644 --- a/pkg/fs/fs_test.go +++ b/pkg/fs/fs_test.go @@ -377,7 +377,7 @@ func Test_fsimpl_ReadYamls(t *testing.T) { &corev1.Namespace{}, &corev1.Namespace{}, }, - wantErr: "error unmarshaling JSON: json: cannot unmarshal string into Go value of type v1.Namespace", + wantErr: "error unmarshaling JSON: while decoding JSON: json: cannot unmarshal string into Go value of type v1.Namespace", beforeFn: func() FS { ns := &corev1.Namespace{ TypeMeta: metav1.TypeMeta{