aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format/config/decoder_test.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-08-02 08:12:44 +0200
committerGitHub <noreply@github.com>2017-08-02 08:12:44 +0200
commit9befb514d83e22268d00ab2c0fdd797b3742f0e9 (patch)
tree923a78009cce4531912b92e1b756a6a8f3ee6d32 /plumbing/format/config/decoder_test.go
parent91cdedae7faffca0a707fa47780efafe157ba47c (diff)
parente5c6fa237776870483cbe227d7f7ea943f35cb12 (diff)
downloadgo-git-9befb514d83e22268d00ab2c0fdd797b3742f0e9.tar.gz
Merge pull request #501 from smola/config-multiple-urls
config: multiple values in RemoteConfig (URLs and Fetch)
Diffstat (limited to 'plumbing/format/config/decoder_test.go')
-rw-r--r--plumbing/format/config/decoder_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/plumbing/format/config/decoder_test.go b/plumbing/format/config/decoder_test.go
index 412549f..0a8e92c 100644
--- a/plumbing/format/config/decoder_test.go
+++ b/plumbing/format/config/decoder_test.go
@@ -17,7 +17,10 @@ func (s *DecoderSuite) TestDecode(c *C) {
cfg := &Config{}
err := d.Decode(cfg)
c.Assert(err, IsNil, Commentf("decoder error for fixture: %d", idx))
- c.Assert(cfg, DeepEquals, fixture.Config, Commentf("bad result for fixture: %d", idx))
+ buf := bytes.NewBuffer(nil)
+ e := NewEncoder(buf)
+ _ = e.Encode(cfg)
+ c.Assert(cfg, DeepEquals, fixture.Config, Commentf("bad result for fixture: %d, %s", idx, buf.String()))
}
}