aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-09-07 23:30:18 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2017-09-07 23:30:18 +0200
commite34443b595ec386081981a39ed2064e9d5f272b5 (patch)
tree98a5bd999463155ddb5c68d1713c5f69659ef59e
parente60f09b79497dda55c0cb1277168e1ce3d3631c3 (diff)
downloadgo-git-e34443b595ec386081981a39ed2064e9d5f272b5.tar.gz
plumbing/index: fix TestEncode in go 1.9
-rw-r--r--plumbing/format/index/encoder_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/plumbing/format/index/encoder_test.go b/plumbing/format/index/encoder_test.go
index bc5df0f..78cbbba 100644
--- a/plumbing/format/index/encoder_test.go
+++ b/plumbing/format/index/encoder_test.go
@@ -5,6 +5,7 @@ import (
"strings"
"time"
+ "github.com/google/go-cmp/cmp"
. "gopkg.in/check.v1"
"gopkg.in/src-d/go-git.v4/plumbing"
)
@@ -46,7 +47,7 @@ func (s *IndexSuite) TestEncode(c *C) {
err = d.Decode(output)
c.Assert(err, IsNil)
- c.Assert(idx, DeepEquals, output)
+ c.Assert(cmp.Equal(idx, output), Equals, true)
c.Assert(output.Entries[0].Name, Equals, strings.Repeat(" ", 20))
c.Assert(output.Entries[1].Name, Equals, "bar")