util.RoundTrip(): use neighbouring UnmarshalJSON function

The test failures this had introduced before, from index_tests.go's
TestIndicesBuild, suggested that this is probably what we want.

Signed-off-by: Stephan Renatus <srenatus@chef.io>
This commit is contained in:
Stephan Renatus
2018-03-13 12:37:27 +01:00
committed by Torin Sandall
parent 5b07711891
commit bb05fb8067
+1 -1
View File
@@ -65,5 +65,5 @@ func RoundTrip(x *interface{}) error {
if err != nil {
return err
}
return json.Unmarshal(bs, x)
return UnmarshalJSON(bs, x)
}