Skip to content

test(config): use Liquid network in startup tests - #255

Merged
EddieHouston merged 1 commit into
new-indexfrom
fix/config-tests-liquid-network
Aug 27, 2026
Merged

test(config): use Liquid network in startup tests#255
EddieHouston merged 1 commit into
new-indexfrom
fix/config-tests-liquid-network

Conversation

@EddieHouston

Copy link
Copy Markdown
Collaborator

Summary

Make the startup authentication logging tests valid in Liquid builds.

The tests previously relied on the default mainnet network. With --features liquid, that network name is unsupported, so electrs exited during configuration parsing before emitting the authentication log messages the tests assert.

  • pass --network liquidregtest when the test binary is built with the liquid feature
  • account for the derived liquidregtest daemon subdirectory in the cookie-file assertion
  • preserve the existing Bitcoin test behavior

This fixes the test-liquid failures first introduced with #252 and subsequently observed on #254.

Tests

  • cargo test --test config
  • cargo test --test config --features liquid

@EddieHouston EddieHouston self-assigned this Aug 27, 2026
@EddieHouston
EddieHouston requested a review from Randy808 August 27, 2026 15:22
@EddieHouston
EddieHouston merged commit 4615126 into new-index Aug 27, 2026
6 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.

2 participants