Skip to content

Commit

Permalink
bump test timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
alecps committed Aug 19, 2024
1 parent ac3cf2b commit 81e7371
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion core/blockchain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,12 @@ func TestNoInsertPastL2MigrationBlock(t *testing.T) {
migrationBlock := 2
blockchain.chainConfig.L2MigrationBlock = big.NewInt(int64(migrationBlock))

blocks := makeBlockChain(blockchain.CurrentBlock(), 100000000, mockEngine.NewFullFaker(), blockchain.db, 0)
blocks := makeBlockChain(blockchain.CurrentBlock(), 1000000, 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.
require.EqualValues(t, migrationBlock-1, failedBlock)
// Only the first block in blocks[] should be inserted
if blocks[migrationBlock-2].Hash() != rawdb.ReadHeadBlockHash(blockchain.db) {
t.Fatalf("Write/Get HeadBlockHash failed")
}
Expand Down
2 changes: 1 addition & 1 deletion e2e_test/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ func TestStopNetworkAtL2Block(t *testing.T) {
require.NoError(t, err)
defer shutdown()

ctx, cancel := context.WithTimeout(context.Background(), time.Second*100)
ctx, cancel := context.WithTimeout(context.Background(), time.Second*400)
defer cancel()

runStopNetworkAtL2BlockTest(ctx, t, network, l2BlockOG)
Expand Down

0 comments on commit 81e7371

Please sign in to comment.