fix windows tests

Signed-off-by: Christian Richter <christian@boltares.de>
pull/9357/head
Christian 4 years ago committed by Christian Richter
parent 55ef064798
commit 4f1ab5a331

@ -77,6 +77,7 @@ func path(filename string) string {
}
func compare(actual []byte, filename string) error {
actual = normalize(actual)
if err := update(filename, actual); err != nil {
return err
}
@ -85,6 +86,7 @@ func compare(actual []byte, filename string) error {
if err != nil {
return errors.Wrapf(err, "unable to read testdata %s", filename)
}
expected = normalize(expected)
if !bytes.Equal(expected, actual) {
return errors.Errorf("does not match golden file %s\n\nWANT:\n'%s'\n\nGOT:\n'%s'\n", filename, expected, actual)
}

Loading…
Cancel
Save