Commit 272d4471 authored by protolambda's avatar protolambda Committed by GitHub

op-e2e: fix tx-gossip flake (#10692)

parent 81dd299a
package op_e2e package op_e2e
import ( import (
"math/big"
"testing" "testing"
"time"
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils/geth" "github.com/ethereum-optimism/optimism/op-e2e/e2eutils/geth"
"github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common"
...@@ -23,6 +25,10 @@ func TestTxGossip(t *testing.T) { ...@@ -23,6 +25,10 @@ func TestTxGossip(t *testing.T) {
verifClient := sys.Clients["verifier"] verifClient := sys.Clients["verifier"]
geth.ConnectP2P(t, seqClient, verifClient) geth.ConnectP2P(t, seqClient, verifClient)
// This prevents the below tx-sending from flaking in CI
_, err = geth.WaitForBlock(big.NewInt(10), verifClient, time.Minute)
require.NoError(t, err)
// Send a transaction to the verifier and it should be gossiped to the sequencer and included in a block. // Send a transaction to the verifier and it should be gossiped to the sequencer and included in a block.
SendL2Tx(t, cfg, verifClient, cfg.Secrets.Alice, func(opts *TxOpts) { SendL2Tx(t, cfg, verifClient, cfg.Secrets.Alice, func(opts *TxOpts) {
opts.ToAddr = &common.Address{0xaa} opts.ToAddr = &common.Address{0xaa}
......
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