Skip to content

tests: fix grpc port flake in test_unix_socket_path_length - #9579

Merged
cdecker merged 1 commit into
ElementsProject:masterfrom
daywalker90:fix-test_unix_socket_path_length
Sep 28, 2026
Merged

cdecker merged 1 commit into
ElementsProject:masterfrom
daywalker90:fix-test_unix_socket_path_length

Conversation

@daywalker90

Copy link
Copy Markdown
Collaborator

The test builds LightningNode directly instead of via node_factory.get_node(), so it never allocated a reserved grpc port. LightningNode then fell back to the hardcoded default 9736, which is not in the port reservation pool, and cln-grpc failed with:

plugin-cln-grpc: Error running grpc interface: Err(serving requests
Caused by:
    1: Address already in use (os error 98)

Pass a reserved port for grpc_port too.

Changelog-None

Fixes: #9565

The test builds LightningNode directly instead of via
node_factory.get_node(), so it never allocated a reserved grpc port.
LightningNode then fell back to the hardcoded default 9736, which is not
in the port reservation pool, and cln-grpc failed with:

    plugin-cln-grpc: Error running grpc interface: Err(serving requests
    Caused by:
        1: Address already in use (os error 98)

Pass a reserved port for grpc_port too.

Changelog-None
@cdecker
cdecker enabled auto-merge (rebase) September 28, 2026 13:21
@cdecker
cdecker merged commit 3ed9046 into ElementsProject:master Sep 28, 2026
84 of 87 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI flake test_unix_socket_path_length

2 participants