Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ATGardner committed Jun 28, 2021
1 parent 2186068 commit 08d2022
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/commands/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func TestRunAppCreate(t *testing.T) {
},
"Should fail if getInstallationNamespace fails": {
timeout: 1,
wantErr: "some error",
wantErr: "failed to get application namespace: some error",
prepareRepo: func() (git.Repository, fs.FS, error) {
memfs := memfs.New()
_ = memfs.MkdirAll(filepath.Join(store.Default.AppsDir, "app", store.Default.OverlaysDir, "project"), 0666)
Expand All @@ -151,7 +151,7 @@ func TestRunAppCreate(t *testing.T) {
},
"Should fail if waiting fails": {
timeout: 1,
wantErr: "some error",
wantErr: "failed waiting for application to sync: some error",
beforeFn: func(f *kubemocks.Factory) {
f.On("Wait", mock.Anything, mock.Anything).Return(errors.New("some error"))
},
Expand Down

0 comments on commit 08d2022

Please sign in to comment.