aboutsummaryrefslogtreecommitdiffstats
path: root/config/config_test.go
diff options
context:
space:
mode:
authorSantiago M. Mola <santi@mola.io>2017-07-27 17:17:34 +0200
committerSantiago M. Mola <santi@mola.io>2017-08-01 13:01:59 +0200
commite5c6fa237776870483cbe227d7f7ea943f35cb12 (patch)
treed8708626c6e4bdacdf3d3b796a17025908b6606b /config/config_test.go
parent1e70916ca7e4d5c0ad00edbfd1877e06d7587fc6 (diff)
downloadgo-git-e5c6fa237776870483cbe227d7f7ea943f35cb12.tar.gz
config: preserve option order on config marshalling
Do not change order of options (e.g. in RemoteConfig) when serializing for any option whose value has not changed.
Diffstat (limited to 'config/config_test.go')
-rw-r--r--config/config_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/config_test.go b/config/config_test.go
index e958677..97f4bbf 100644
--- a/config/config_test.go
+++ b/config/config_test.go
@@ -107,7 +107,7 @@ func (s *ConfigSuite) TestUnmarshallMarshall(c *C) {
output, err := cfg.Marshal()
c.Assert(err, IsNil)
- c.Assert(output, DeepEquals, input)
+ c.Assert(string(output), DeepEquals, string(input))
}
func (s *ConfigSuite) TestValidateInvalidRemote(c *C) {