Skip to content

Commit 0574b44

Browse files
committed
fix: use a different port seed when retrying a failing test
Failures like rpc_mempool_entry_fee_fields_deprecation.py can happen due to conflicting port usage and retrying with the same port seed will cause the same failure to repeat
1 parent 2eef89c commit 0574b44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/functional/test_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ def get_next(self):
766766
self.jobs.remove(job)
767767
print(f"{name} failed at attempt {attempt}/{self.attempts}, Duration: {int(time.time() - start_time)} s")
768768
# start over
769-
portseed_arg = ["--portseed={}".format(portseed)]
769+
portseed_arg = ["--portseed={}".format(portseed + (1000 * attempt))]
770770
log_stdout = tempfile.SpooledTemporaryFile(max_size=2**16)
771771
log_stderr = tempfile.SpooledTemporaryFile(max_size=2**16)
772772
test_argv = name.split()

0 commit comments

Comments
 (0)