Skip to content

Commit

Permalink
correct number of returner values
Browse files Browse the repository at this point in the history
  • Loading branch information
refs committed Jul 23, 2021
1 parent b9364ec commit b69d19a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/storage/utils/decomposedfs/tree/tree_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ var _ = Describe("Tree", func() {
})

It("restores the file to its original location if the targetPath is empty", func() {
_, restoreFunc, err := t.RestoreRecycleItemFunc(env.Ctx, n.ID, "", "")
_, _, restoreFunc, err := t.RestoreRecycleItemFunc(env.Ctx, n.ID, "", "")
Expect(err).ToNot(HaveOccurred())

Expect(restoreFunc()).To(Succeed())
Expand All @@ -150,7 +150,7 @@ var _ = Describe("Tree", func() {
})

It("restores files to different locations", func() {
_, restoreFunc, err := t.RestoreRecycleItemFunc(env.Ctx, n.ID, "", "dir1/newLocation")
_, _, restoreFunc, err := t.RestoreRecycleItemFunc(env.Ctx, n.ID, "", "dir1/newLocation")
Expect(err).ToNot(HaveOccurred())

Expect(restoreFunc()).To(Succeed())
Expand All @@ -165,7 +165,7 @@ var _ = Describe("Tree", func() {
})

It("removes the file from the trash", func() {
_, restoreFunc, err := t.RestoreRecycleItemFunc(env.Ctx, n.ID, "", "")
_, _, restoreFunc, err := t.RestoreRecycleItemFunc(env.Ctx, n.ID, "", "")
Expect(err).ToNot(HaveOccurred())

Expect(restoreFunc()).To(Succeed())
Expand Down

0 comments on commit b69d19a

Please sign in to comment.