Commit fd0fb659 authored by Matthew Slipper's avatar Matthew Slipper Committed by GitHub

Merge pull request #8544 from ethereum-optimism/bugfix/i-o-errors

op-e2e: Ignore i/o timeouts in receipts fetching
parents b7bd4f66 3ad2a9dd
...@@ -5,6 +5,7 @@ import ( ...@@ -5,6 +5,7 @@ import (
"errors" "errors"
"fmt" "fmt"
"math/big" "math/big"
"os"
"time" "time"
"github.com/ethereum/go-ethereum" "github.com/ethereum/go-ethereum"
...@@ -53,6 +54,9 @@ func ForReceipt(ctx context.Context, client *ethclient.Client, hash common.Hash, ...@@ -53,6 +54,9 @@ func ForReceipt(ctx context.Context, client *ethclient.Client, hash common.Hash,
continue continue
} }
} }
if errors.Is(err, os.ErrDeadlineExceeded) {
continue
}
if err != nil { if err != nil {
return nil, fmt.Errorf("failed to get receipt: %w", err) return nil, fmt.Errorf("failed to get receipt: %w", err)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment