Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit c2e6b5d

Browse files
committed
repository: oops, fix the prune test
1 parent 88acc31 commit c2e6b5d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

prune_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type PruneSuite struct {
1818

1919
var _ = Suite(&PruneSuite{})
2020

21-
func (s *PruneSuite) TestPrune(c *C, deleteTime time.Time) {
21+
func (s *PruneSuite) testPrune(c *C, deleteTime time.Time) {
2222
srcFs := fixtures.ByTag("unpacked").One().DotGit()
2323
var sto storage.Storer
2424
var err error
@@ -46,7 +46,8 @@ func (s *PruneSuite) TestPrune(c *C, deleteTime time.Time) {
4646
c.Assert(err, IsNil)
4747

4848
err = r.Prune(PruneOptions{
49-
Handler: r.DeleteObject,
49+
OnlyObjectsOlderThan: deleteTime,
50+
Handler: r.DeleteObject,
5051
})
5152
c.Assert(err, IsNil)
5253

0 commit comments

Comments
 (0)