aboutsummaryrefslogtreecommitdiffstats
path: root/repository_test.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-08-22 03:29:05 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2016-08-22 03:29:05 +0200
commit2ed3474ab8e52c98a87e390d5128d45d693a115d (patch)
tree6f136c2508c22f6b5146ef08c49821a45a5f2357 /repository_test.go
parent5b13c1a2e55cb442484d9c7b45389f422b110eec (diff)
downloadgo-git-2ed3474ab8e52c98a87e390d5128d45d693a115d.tar.gz
ForEach review and Commit.Tree err return
Diffstat (limited to 'repository_test.go')
-rw-r--r--repository_test.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/repository_test.go b/repository_test.go
index 6ad0d1e..ce53ead 100644
--- a/repository_test.go
+++ b/repository_test.go
@@ -209,7 +209,11 @@ func (s *RepositorySuite) TestCommit(c *C) {
c.Assert(commit.Hash, Equals, commit.ID())
c.Assert(commit.Hash, Equals, hash)
c.Assert(commit.Type(), Equals, core.CommitObject)
- c.Assert(commit.Tree().Hash.IsZero(), Equals, false)
+
+ tree, err := commit.Tree()
+ c.Assert(err, IsNil)
+ c.Assert(tree.Hash.IsZero(), Equals, false)
+
c.Assert(commit.Author.Email, Equals, "daniel@lordran.local")
}