@@ -99,7 +99,7 @@ func TestLazyAggregationLoop_BlockTimerTrigger(t *testing.T) {
9999 defer wg .Done ()
100100 blockTimer := time .NewTimer (0 ) // Fire immediately first time
101101 defer blockTimer .Stop ()
102- m .lazyAggregationLoop (ctx , blockTimer )
102+ require . NoError ( m .lazyAggregationLoop (ctx , blockTimer ) )
103103 }()
104104
105105 // Wait for at least one block to be published
@@ -137,7 +137,7 @@ func TestLazyAggregationLoop_LazyTimerTrigger(t *testing.T) {
137137 // Use real timers for this test
138138 blockTimer := time .NewTimer (0 ) // Fire immediately first time
139139 defer blockTimer .Stop ()
140- m .lazyAggregationLoop (ctx , blockTimer )
140+ require . NoError ( m .lazyAggregationLoop (ctx , blockTimer ) )
141141 }()
142142
143143 // Wait for the first publish call triggered by the initial immediate lazyTimer fire
@@ -186,7 +186,7 @@ func TestLazyAggregationLoop_PublishError(t *testing.T) {
186186 // Use real timers
187187 blockTimer := time .NewTimer (0 )
188188 defer blockTimer .Stop ()
189- m .lazyAggregationLoop (ctx , blockTimer )
189+ require . Error ( m .lazyAggregationLoop (ctx , blockTimer ) )
190190 }()
191191
192192 // Wait for the first publish attempt (which will fail)
@@ -267,7 +267,7 @@ func TestLazyAggregationLoop_TxNotification(t *testing.T) {
267267 // Start with a timer that won't fire immediately
268268 blockTimer := time .NewTimer (blockTime )
269269 defer blockTimer .Stop ()
270- m .lazyAggregationLoop (ctx , blockTimer )
270+ require . NoError ( m .lazyAggregationLoop (ctx , blockTimer ) )
271271 }()
272272
273273 // Wait for the initial lazy timer to fire and publish a block
@@ -342,7 +342,7 @@ func TestEmptyBlockCreation(t *testing.T) {
342342 defer blockTimer .Stop ()
343343
344344 // Call produceBlock directly to test empty block creation
345- m .produceBlock (ctx , "test_trigger" , lazyTimer , blockTimer )
345+ require . NoError ( m .produceBlock (ctx , "test_trigger" , lazyTimer , blockTimer ) )
346346
347347 // Verify that the context was passed correctly
348348 require .NotNil (capturedCtx , "Context should have been captured by mock publish function" )
@@ -370,7 +370,7 @@ func TestNormalAggregationLoop_TxNotification(t *testing.T) {
370370 defer wg .Done ()
371371 blockTimer := time .NewTimer (blockTime )
372372 defer blockTimer .Stop ()
373- m .normalAggregationLoop (ctx , blockTimer )
373+ require . NoError ( m .normalAggregationLoop (ctx , blockTimer ) )
374374 }()
375375
376376 // Wait for the first block to be published by the timer
0 commit comments