Fix a bug in error output when golden file doesn't match

This commit is contained in:
Ian Howell 2019-05-01 15:35:31 -05:00
parent 15678c7fc6
commit 2bab338af4

@ -55,7 +55,7 @@ func executeCmd(t *testing.T, command string) {
}
if !bytes.Equal(actual.Bytes(), golden) {
errFmt := "output does not match golden file: %s\nEXPECTED:\n%s\nGOT:\n%s"
t.Errorf(errFmt, goldenFilePath, string(golden), actual.String)
t.Errorf(errFmt, goldenFilePath, string(golden), actual.String())
}
}