mirror of
https://github.com/jstemmer/go-junit-report.git
synced 2025-07-05 13:32:54 -05:00
Fix cmp.Diff argument order in tests
This commit is contained in:
@ -79,7 +79,7 @@ func testRun(inputFile, reportFile string, config Config, t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
if diff := cmp.Diff(output.String(), string(wantReport)); diff != "" {
|
||||
if diff := cmp.Diff(string(wantReport), output.String()); diff != "" {
|
||||
t.Errorf("Unexpected report diff (-want, +got):\n%v", diff)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user