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{