Page MenuHomePhabricator

[Chronik] Generate Chronik port for functional test
ClosedPublic

Authored by tobias_ruck on Mar 11 2023, 13:49.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC83358c5c7ea8: [Chronik] Generate Chronik port for functional test
Summary

Currently, chronik_block.py and chronik_serve.py sometimes fail, as their node ports overlap.

We add the same port allocation mechanism as for p2p_port and rpc_port to fix this.

Test Plan

ninja check-functional

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Fabien requested changes to this revision.Mar 13 2023, 08:49
Fabien added inline comments.
test/functional/test_framework/util.py
400 ↗(On Diff #38434)

That's the 3rd copy pasta, time to clean this up

This revision now requires changes to proceed.Mar 13 2023, 08:49

un-copy-pasta port allocation code

arc diff linter betrayed me

Fabien added inline comments.
test/functional/test_framework/util.py
361 ↗(On Diff #38482)
This revision is now accepted and ready to land.Mar 13 2023, 12:16

update comment for unique_port