diff options
author | Jeremy Stribling <strib@alum.mit.edu> | 2017-11-29 16:12:07 -0800 |
---|---|---|
committer | Jeremy Stribling <strib@alum.mit.edu> | 2017-11-29 16:14:04 -0800 |
commit | c2e6b5dcf8ff1cb6b61f4a165e526af209c6c185 (patch) | |
tree | 462903540ba8ccb73e3fdb1af3c999f6e722486c | |
parent | 88acc31c76a3033a4d02e0d6cc751c74b9aeeea5 (diff) | |
download | go-git-c2e6b5dcf8ff1cb6b61f4a165e526af209c6c185.tar.gz |
repository: oops, fix the prune test
-rw-r--r-- | prune_test.go | 5 |
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) |