aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--prune_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/prune_test.go b/prune_test.go
index 613fb0f..60652ec 100644
--- a/prune_test.go
+++ b/prune_test.go
@@ -18,7 +18,7 @@ type PruneSuite struct {
var _ = Suite(&PruneSuite{})
-func (s *PruneSuite) TestPrune(c *C, deleteTime time.Time) {
+func (s *PruneSuite) testPrune(c *C, deleteTime time.Time) {
srcFs := fixtures.ByTag("unpacked").One().DotGit()
var sto storage.Storer
var err error
@@ -46,7 +46,8 @@ func (s *PruneSuite) TestPrune(c *C, deleteTime time.Time) {
c.Assert(err, IsNil)
err = r.Prune(PruneOptions{
- Handler: r.DeleteObject,
+ OnlyObjectsOlderThan: deleteTime,
+ Handler: r.DeleteObject,
})
c.Assert(err, IsNil)