Skip to content

Commit

Permalink
test: randomized perturbing in feature_init
Browse files Browse the repository at this point in the history
  • Loading branch information
L0laL33tz committed Oct 8, 2023
1 parent 64b80d5 commit 5ab6419
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/functional/feature_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"""Stress tests related to node initialization."""
import os
from pathlib import Path
from random import randint
import shutil

from test_framework.test_framework import BitcoinTestFramework, SkipTest
Expand Down Expand Up @@ -137,8 +138,8 @@ def check_clean_start():
# Since the genesis block is not checked by -checkblocks, the
# perturbation window must be chosen such that a higher block
# in blk*.dat is affected.
tf.seek(150)
tf.write(b'1' * 200)
tf.seek(randint (150, 15000))
tf.write(b'1' * randint(20, 2000))

start_expecting_error(err_fragment)

Expand Down

0 comments on commit 5ab6419

Please sign in to comment.