mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 22:56:43 +00:00
make test failure code more succinct
This commit is contained in:
parent
1a700027ce
commit
f464eb4e78
1 changed files with 1 additions and 4 deletions
|
|
@ -61,10 +61,7 @@ func TestLogging(t *testing.T) {
|
||||||
mock := mockT{&outp}
|
mock := mockT{&outp}
|
||||||
tc.run(&mock)
|
tc.run(&mock)
|
||||||
if outp.String() != tc.expected {
|
if outp.String() != tc.expected {
|
||||||
fmt.Println("mismatch")
|
fmt.Printf("output mismatch.\nwant: '%s'\ngot: '%s'\n", tc.expected, outp.String())
|
||||||
fmt.Printf("'%s'\n", outp.String())
|
|
||||||
fmt.Println("----")
|
|
||||||
fmt.Printf("'%s'\n", tc.expected)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue