Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

Commit

Permalink
test with master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
ilian2233 committed Jan 12, 2023
1 parent eb6f9f2 commit 6f5da4c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dbService.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ func (m *mongoService) SaveCollection(ctx context.Context, database, collection
}

func (m *mongoService) RestoreCollection(ctx context.Context, database, collection string, reader io.Reader) error {

if collection == "internalcomponents" {
time.Sleep(time.Second * 3)
return fmt.Errorf("test fail")
}

err := m.session.RemoveAll(ctx, database, collection)
if err != nil {
return fmt.Errorf("error while clearing collection=%v/%v: %v", database, collection, err)
Expand Down

0 comments on commit 6f5da4c

Please sign in to comment.