mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
update test case
This commit is contained in:
parent
d2ec519f15
commit
3e1ceddc4f
1 changed files with 1 additions and 1 deletions
|
|
@ -1337,7 +1337,7 @@ func TestStandardTraceBlockToFile(t *testing.T) {
|
||||||
}
|
}
|
||||||
for j, tracer := range tracers {
|
for j, tracer := range tracers {
|
||||||
data, _ := os.ReadFile(tracer)
|
data, _ := os.ReadFile(tracer)
|
||||||
if string(data[:len(data)-1]) != tc.wants[j] {
|
if len(data) == 0 || string(data[:len(data)-1]) != tc.wants[j] {
|
||||||
t.Errorf("test %d, result mismatch, want %s, have %s", i, tc.wants[j], string(data))
|
t.Errorf("test %d, result mismatch, want %s, have %s", i, tc.wants[j], string(data))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue