Skip to content

Commit 5ab6419

Browse files
committed
test: randomized perturbing in feature_init
1 parent 64b80d5 commit 5ab6419

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/functional/feature_init.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"""Stress tests related to node initialization."""
66
import os
77
from pathlib import Path
8+
from random import randint
89
import shutil
910

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

143144
start_expecting_error(err_fragment)
144145

0 commit comments

Comments
 (0)