@@ -467,19 +467,19 @@ func TestEvmFullNodeBlockPropagationE2E(t *testing.T) {
467467 txBlockNumbers = append (txBlockNumbers , txBlockNumber )
468468 t .Logf ("Transaction %d included in sequencer block %d" , i + 1 , txBlockNumber )
469469
470- // Vary the timing to create different block distributions
470+ // Optimized timing to create different block distributions
471471 if i < 3 {
472- time .Sleep (100 * time .Millisecond ) // Fast submissions
472+ time .Sleep (50 * time .Millisecond ) // Fast submissions
473473 } else if i < 6 {
474- time .Sleep (200 * time .Millisecond ) // Medium pace
474+ time .Sleep (100 * time .Millisecond ) // Medium pace
475475 } else {
476- time .Sleep (300 * time .Millisecond ) // Slower pace
476+ time .Sleep (150 * time .Millisecond ) // Slower pace
477477 }
478478 }
479479
480- // Wait for all blocks to propagate
480+ // Wait for all blocks to propagate (reduced wait time due to faster block times)
481481 t .Log ("Waiting for block propagation to full node..." )
482- time .Sleep (2 * time .Second )
482+ time .Sleep (1 * time .Second )
483483
484484 // === VERIFICATION PHASE ===
485485
@@ -515,7 +515,7 @@ func TestEvmFullNodeBlockPropagationE2E(t *testing.T) {
515515 return false
516516 }
517517 return true
518- }, 60 * time .Second , 2 * time .Second , "Full node should catch up to sequencer height %d" , currentHeight )
518+ }, 30 * time .Second , 1 * time .Second , "Full node should catch up to sequencer height %d" , currentHeight )
519519
520520 t .Log ("Full node is synced! Verifying block propagation..." )
521521
@@ -560,8 +560,8 @@ func TestEvmFullNodeBlockPropagationE2E(t *testing.T) {
560560 // Additional test: Simulate multiple full node behavior by running verification multiple times
561561 t .Log ("Simulating multiple full node verification by running additional checks..." )
562562
563- // Verify state consistency multiple times to simulate different full nodes
564- for round := 1 ; round <= 3 ; round ++ {
563+ // Verify state consistency multiple times to simulate different full nodes (reduced rounds)
564+ for round := 1 ; round <= 2 ; round ++ {
565565 t .Logf ("Verification round %d - simulating full node %d" , round , round )
566566
567567 // Check a sample of blocks each round
@@ -573,7 +573,7 @@ func TestEvmFullNodeBlockPropagationE2E(t *testing.T) {
573573 }
574574
575575 // Small delay between rounds
576- time .Sleep (500 * time .Millisecond )
576+ time .Sleep (200 * time .Millisecond )
577577 }
578578
579579 t .Logf ("✅ Test PASSED: Block propagation working correctly!" )
@@ -665,7 +665,7 @@ func setupSequencerNodeLazy(t *testing.T, sut *SystemUnderTest, sequencerHome, j
665665 "--rollkit.node.block_time" , DefaultBlockTime ,
666666 "--rollkit.node.aggregator=true" ,
667667 "--rollkit.node.lazy_mode=true" , // Enable lazy mode
668- "--rollkit.node.lazy_block_interval=30s " , // Set lazy block interval to 30 seconds
668+ "--rollkit.node.lazy_block_interval=10s " , // Set lazy block interval to 10 seconds
669669 "--rollkit.signer.passphrase" , TestPassphrase ,
670670 "--home" , sequencerHome ,
671671 "--rollkit.da.address" , DAAddress ,
@@ -701,7 +701,7 @@ func verifyNoBlockProduction(t *testing.T, client *ethclient.Client, duration ti
701701 "%s should not produce new blocks during idle period (started at %d, now at %d)" ,
702702 nodeName , initialHeight , currentHeight )
703703
704- time .Sleep (500 * time .Millisecond )
704+ time .Sleep (200 * time .Millisecond )
705705 }
706706
707707 t .Logf ("✅ %s maintained height %d for %v (no new blocks produced)" , nodeName , initialHeight , duration )
@@ -769,10 +769,10 @@ func TestEvmLazyModeSequencerE2E(t *testing.T) {
769769
770770 // === TEST LAZY MODE BEHAVIOR ===
771771
772- // Monitor for no block production during idle period
772+ // Monitor for no block production during idle period (reduced time)
773773 t .Log ("Monitoring nodes for idle block production (should be none in lazy mode)..." )
774- verifyNoBlockProduction (t , sequencerClient , 5 * time .Second , "sequencer" )
775- verifyNoBlockProduction (t , fullNodeClient , 5 * time .Second , "full node" )
774+ verifyNoBlockProduction (t , sequencerClient , 2 * time .Second , "sequencer" )
775+ verifyNoBlockProduction (t , fullNodeClient , 2 * time .Second , "full node" )
776776
777777 // Track transactions and their blocks
778778 var txHashes []common.Hash
@@ -795,8 +795,8 @@ func TestEvmLazyModeSequencerE2E(t *testing.T) {
795795
796796 // Verify no additional blocks are produced after transaction
797797 t .Log ("Monitoring for idle period after transaction 1..." )
798- verifyNoBlockProduction (t , sequencerClient , 3 * time .Second , "sequencer" )
799- verifyNoBlockProduction (t , fullNodeClient , 3 * time .Second , "full node" )
798+ verifyNoBlockProduction (t , sequencerClient , 2 * time .Second , "sequencer" )
799+ verifyNoBlockProduction (t , fullNodeClient , 2 * time .Second , "full node" )
800800
801801 // === ROUND 2: Burst transactions ===
802802
@@ -810,7 +810,7 @@ func TestEvmLazyModeSequencerE2E(t *testing.T) {
810810 t .Logf ("Transaction %d included in sequencer block %d" , i + 2 , txBlockNumber )
811811
812812 // Small delay between transactions
813- time .Sleep (200 * time .Millisecond )
813+ time .Sleep (20 * time .Millisecond )
814814 }
815815
816816 // Verify all transactions sync to full node
@@ -821,8 +821,8 @@ func TestEvmLazyModeSequencerE2E(t *testing.T) {
821821
822822 // Verify no additional blocks after burst
823823 t .Log ("Monitoring for idle period after burst transactions..." )
824- verifyNoBlockProduction (t , sequencerClient , 4 * time .Second , "sequencer" )
825- verifyNoBlockProduction (t , fullNodeClient , 4 * time .Second , "full node" )
824+ verifyNoBlockProduction (t , sequencerClient , 2 * time .Second , "sequencer" )
825+ verifyNoBlockProduction (t , fullNodeClient , 2 * time .Second , "full node" )
826826
827827 // === ROUND 3: Delayed transaction ===
828828
0 commit comments