mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
core/state: make test output message readable (#33400)
This commit is contained in:
parent
16f50285b7
commit
3a5560fa98
1 changed files with 2 additions and 2 deletions
|
|
@ -129,7 +129,7 @@ func TestHooks(t *testing.T) {
|
|||
|
||||
for i, want := range wants {
|
||||
if have := result[i]; have != want {
|
||||
t.Fatalf("error event %d, have\n%v\nwant%v\n", i, have, want)
|
||||
t.Fatalf("error event %d\nhave: %v\nwant: %v", i, have, want)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -165,7 +165,7 @@ func TestHooks_OnCodeChangeV2(t *testing.T) {
|
|||
|
||||
for i, want := range wants {
|
||||
if have := result[i]; have != want {
|
||||
t.Fatalf("error event %d, have\n%v\nwant%v\n", i, have, want)
|
||||
t.Fatalf("error event %d\nhave: %v\nwant: %v", i, have, want)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue