aboutsummaryrefslogtreecommitdiffstats
path: root/tree_walker_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tree_walker_test.go')
-rw-r--r--tree_walker_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/tree_walker_test.go b/tree_walker_test.go
index 28e41f2..3b92edf 100644
--- a/tree_walker_test.go
+++ b/tree_walker_test.go
@@ -99,7 +99,10 @@ func (s *SuiteTreeWalker) TestNext(c *C) {
commit, err := r.Commit(core.NewHash(t.commit))
c.Assert(err, IsNil, Commentf("subtest %d: %v (%s)", i, err, t.commit))
- walker := NewTreeWalker(r, commit.Tree())
+ tree, err := commit.Tree()
+ c.Assert(err, IsNil)
+
+ walker := NewTreeWalker(r, tree)
for k := 0; k < len(t.objs); k++ {
info := t.objs[k]
mode, err := strconv.ParseInt(info.Mode, 8, 32)