aboutsummaryrefslogtreecommitdiffstats
path: root/objects_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'objects_test.go')
-rw-r--r--objects_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/objects_test.go b/objects_test.go
index 7d86b1c..b36bb85 100644
--- a/objects_test.go
+++ b/objects_test.go
@@ -31,7 +31,10 @@ func (s *ObjectsSuite) TestNewCommit(c *C) {
c.Assert(commit.Hash, Equals, commit.ID())
c.Assert(commit.Hash.String(), Equals, "a5b8b09e2f8fcb0bb99d3ccb0958157b40890d69")
- c.Assert(commit.Tree().Hash.String(), Equals, "c2d30fa8ef288618f65f6eed6e168e0d514886f4")
+
+ tree, err := commit.Tree()
+ c.Assert(err, IsNil)
+ c.Assert(tree.Hash.String(), Equals, "c2d30fa8ef288618f65f6eed6e168e0d514886f4")
parents := commit.Parents()
parentCommit, err := parents.Next()