Skip to content

Commit 792d893

Browse files
rlp/rlpgen: print want/expect output string if mismatch (#26932)
Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
1 parent 0137bd6 commit 792d893

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rlp/rlpgen/gen_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func TestOutput(t *testing.T) {
7575
t.Fatal("error loading expected test output:", err)
7676
}
7777
if !bytes.Equal(output, wantOutput) {
78-
t.Fatal("output mismatch:\n", string(output))
78+
t.Fatalf("output mismatch, want: %v got %v", string(wantOutput), string(output))
7979
}
8080
})
8181
}

0 commit comments

Comments
 (0)