Skip to content

Commit c8b614f

Browse files
author
colinlyguo
committed
unit tests fix
1 parent a1c4562 commit c8b614f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

rollup/internal/controller/watcher/batch_proposer_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ func testBatchProposerLimitsCodecV4(t *testing.T) {
140140
BatchTimeoutSec: tt.batchTimeoutSec,
141141
GasCostIncreaseMultiplier: 1.2,
142142
MaxUncompressedBatchBytesSize: math.MaxUint64,
143+
MaxChunksPerBatch: math.MaxInt32,
143144
}, encoding.CodecV4, &params.ChainConfig{
144145
LondonBlock: big.NewInt(0),
145146
BernoulliBlock: big.NewInt(0),
@@ -228,6 +229,7 @@ func testBatchCommitGasAndCalldataSizeEstimationCodecV4(t *testing.T) {
228229
BatchTimeoutSec: 0,
229230
GasCostIncreaseMultiplier: 1.2,
230231
MaxUncompressedBatchBytesSize: math.MaxUint64,
232+
MaxChunksPerBatch: math.MaxInt32,
231233
}, encoding.CodecV4, &params.ChainConfig{LondonBlock: big.NewInt(0), BernoulliBlock: big.NewInt(0), CurieBlock: big.NewInt(0), DarwinTime: new(uint64), DarwinV2Time: new(uint64)}, db, nil)
232234
bp.TryProposeBatch()
233235

@@ -317,6 +319,7 @@ func testBatchProposerBlobSizeLimitCodecV4(t *testing.T) {
317319
BatchTimeoutSec: math.MaxUint32,
318320
GasCostIncreaseMultiplier: 1,
319321
MaxUncompressedBatchBytesSize: math.MaxUint64,
322+
MaxChunksPerBatch: math.MaxInt32,
320323
}, encoding.CodecV4, chainConfig, db, nil)
321324

322325
for i := 0; i < 2; i++ {
@@ -406,6 +409,7 @@ func testBatchProposerMaxChunkNumPerBatchLimitCodecV4(t *testing.T) {
406409
BatchTimeoutSec: math.MaxUint32,
407410
GasCostIncreaseMultiplier: 1,
408411
MaxUncompressedBatchBytesSize: math.MaxUint64,
412+
MaxChunksPerBatch: math.MaxInt32,
409413
}, encoding.CodecV4, chainConfig, db, nil)
410414
bp.TryProposeBatch()
411415

rollup/tests/rollup_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ func testCommitBatchAndFinalizeBundleCodecV4V5V6(t *testing.T) {
9999
MaxL1CommitCalldataSizePerBatch: 1000000,
100100
BatchTimeoutSec: 300,
101101
MaxUncompressedBatchBytesSize: math.MaxUint64,
102+
MaxChunksPerBatch: math.MaxInt32,
102103
}, encoding.CodecV4, chainConfig, db, nil)
103104

104105
bup := watcher.NewBundleProposer(context.Background(), &config.BundleProposerConfig{

0 commit comments

Comments
 (0)