Skip to content

Commit

Permalink
fix: another rebase fix
Browse files Browse the repository at this point in the history
  • Loading branch information
goran-ethernal committed Sep 15, 2024
1 parent ab3c5f3 commit 80b7ad0
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions l1infotreesync/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,24 +312,7 @@ func TestStressAndReorgs(t *testing.T) {
}

commitBlocks(t, client, extraBlocksToMine, time.Millisecond*100)

syncerUpToDate := false
var errMsg string
lb, err := client.Client().BlockNumber(ctx)
require.NoError(t, err)
for i := 0; i < 50; i++ {
lpb, err := syncer.GetLastProcessedBlock(ctx)
require.NoError(t, err)
if lpb == lb {
syncerUpToDate = true

break
}
time.Sleep(time.Second / 2)
errMsg = fmt.Sprintf("last block from client: %d, last block from syncer: %d", lb, lpb)
}

require.True(t, syncerUpToDate, errMsg)
waitForSyncerToCatchUp(ctx, t, syncer, client)

// Assert rollup exit root
expectedRollupExitRoot, err := verifySC.GetRollupExitRoot(&bind.CallOpts{Pending: false})
Expand Down

0 comments on commit 80b7ad0

Please sign in to comment.