Skip to content

Commit

Permalink
shorten chain to insert in test, fix timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
alecps committed Aug 19, 2024
1 parent 51f1f14 commit 4d1dd28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/blockchain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ func TestNoInsertPastL2MigrationBlock(t *testing.T) {
migrationBlock := 2
blockchain.chainConfig.L2MigrationBlock = big.NewInt(int64(migrationBlock))

blocks := makeBlockChain(blockchain.CurrentBlock(), 1000000, mockEngine.NewFullFaker(), blockchain.db, 0)
blocks := makeBlockChain(blockchain.CurrentBlock(), 10000, mockEngine.NewFullFaker(), blockchain.db, 0)
failedBlock, err := blockchain.InsertChain(blocks)
require.EqualError(t, err, errInsertionInterrupted.Error())
// Compare with migrationBlock-1 because failedBlock is the index of the failed block in the blocks[] array, not in the actual blockchain.
Expand Down

0 comments on commit 4d1dd28

Please sign in to comment.