Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
ngtuna committed Feb 8, 2018
1 parent 6b5acc2 commit 0d19542
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cmd/chart-repo/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,12 +240,10 @@ func Test_importCharts(t *testing.T) {

func Test_DeleteRepo(t *testing.T) {
m := &mock.Mock{}
m.On("Upsert", mock.Anything)
m.On("RemoveAll", mock.Anything)
m.On("RemoveAll", bson.M{
"repo.name": "test",
})
dbSession := mockstore.NewMockSession(m)
index, _ := parseRepoIndex([]byte(validRepoIndexYAML))
charts := chartsFromIndex(index, repo{Name: "test", URL: "http://testrepo.com"})
importCharts(dbSession, charts)

err := deleteRepo(dbSession, "test")
if err != nil {
Expand Down

0 comments on commit 0d19542

Please sign in to comment.