mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
one more cleanup
This commit is contained in:
parent
4c6f3e6484
commit
a3f0bf0908
1 changed files with 1 additions and 3 deletions
|
|
@ -1319,10 +1319,8 @@ func TestStandardTraceBlockToFile(t *testing.T) {
|
||||||
block, _ := api.blockByNumber(context.Background(), tc.blockNumber)
|
block, _ := api.blockByNumber(context.Background(), tc.blockNumber)
|
||||||
results, err := api.StandardTraceBlockToFile(context.Background(), block.Hash(), tc.config)
|
results, err := api.StandardTraceBlockToFile(context.Background(), block.Hash(), tc.config)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("test %d, want no error, have %v", i, err)
|
t.Fatalf("test index %d received error %v", i, err)
|
||||||
continue
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for j, traceFileName := range results {
|
for j, traceFileName := range results {
|
||||||
traceReceived, err := os.ReadFile(traceFileName)
|
traceReceived, err := os.ReadFile(traceFileName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue