Fix a bug in error output when golden file doesn't match
This commit is contained in:
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())
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user