diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-09-07 23:30:18 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2017-09-07 23:30:18 +0200 |
commit | e34443b595ec386081981a39ed2064e9d5f272b5 (patch) | |
tree | 98a5bd999463155ddb5c68d1713c5f69659ef59e | |
parent | e60f09b79497dda55c0cb1277168e1ce3d3631c3 (diff) | |
download | go-git-e34443b595ec386081981a39ed2064e9d5f272b5.tar.gz |
plumbing/index: fix TestEncode in go 1.9
-rw-r--r-- | plumbing/format/index/encoder_test.go | 3 |
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") |