aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/object/object_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'plumbing/object/object_test.go')
-rw-r--r--plumbing/object/object_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/plumbing/object/object_test.go b/plumbing/object/object_test.go
index 426baed..46b0065 100644
--- a/plumbing/object/object_test.go
+++ b/plumbing/object/object_test.go
@@ -6,11 +6,12 @@ import (
"testing"
"time"
- "github.com/src-d/go-git-fixtures"
"srcd.works/go-git.v4/plumbing"
+ "srcd.works/go-git.v4/plumbing/filemode"
"srcd.works/go-git.v4/plumbing/storer"
"srcd.works/go-git.v4/storage/filesystem"
+ "github.com/src-d/go-git-fixtures"
. "gopkg.in/check.v1"
)
@@ -91,7 +92,7 @@ func (s *ObjectsSuite) TestParseTree(c *C) {
tree.buildMap()
c.Assert(tree.m, HasLen, 8)
c.Assert(tree.m[".gitignore"].Name, Equals, ".gitignore")
- c.Assert(tree.m[".gitignore"].Mode.String(), Equals, "-rw-r--r--")
+ c.Assert(tree.m[".gitignore"].Mode, Equals, filemode.Regular)
c.Assert(tree.m[".gitignore"].Hash.String(), Equals, "32858aad3c383ed1ff0a0f9bdf231d54a00c9e88")
count := 0