Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ATGardner committed Oct 4, 2024
1 parent 5e71939 commit 51fafc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/commands/project_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion pkg/fs/fs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 51fafc9

Please sign in to comment.