Commit 4c1438d3 authored by protolambda's avatar protolambda Committed by GitHub

Merge pull request #7769 from ethereum-optimism/jg/fix_rpc_alt_sync_test

op-e2e: Deduplicate blocks for alt sync test
parents 7591f192 71a76b5a
...@@ -592,6 +592,10 @@ func TestSystemRPCAltSync(t *testing.T) { ...@@ -592,6 +592,10 @@ func TestSystemRPCAltSync(t *testing.T) {
opts.VerifyOnClients(l2Verif) opts.VerifyOnClients(l2Verif)
}) })
// Sometimes we get duplicate blocks on the sequencer which makes this test flaky
published = slices.Compact(published)
received = slices.Compact(received)
// Verify that the tx was received via RPC sync (P2P is disabled) // Verify that the tx was received via RPC sync (P2P is disabled)
require.Contains(t, received, eth.BlockID{Hash: receiptSeq.BlockHash, Number: receiptSeq.BlockNumber.Uint64()}.String()) require.Contains(t, received, eth.BlockID{Hash: receiptSeq.BlockHash, Number: receiptSeq.BlockNumber.Uint64()}.String())
......
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