Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit e34443b

Browse files
committed
plumbing/index: fix TestEncode in go 1.9
1 parent e60f09b commit e34443b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plumbing/format/index/encoder_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"strings"
66
"time"
77

8+
"github.com/google/go-cmp/cmp"
89
. "gopkg.in/check.v1"
910
"gopkg.in/src-d/go-git.v4/plumbing"
1011
)
@@ -46,7 +47,7 @@ func (s *IndexSuite) TestEncode(c *C) {
4647
err = d.Decode(output)
4748
c.Assert(err, IsNil)
4849

49-
c.Assert(idx, DeepEquals, output)
50+
c.Assert(cmp.Equal(idx, output), Equals, true)
5051

5152
c.Assert(output.Entries[0].Name, Equals, strings.Repeat(" ", 20))
5253
c.Assert(output.Entries[1].Name, Equals, "bar")

0 commit comments

Comments
 (0)