Skip to content

Fix swap BTC selection unit tests#1008

Open
newmattock wants to merge 1 commit into
eigenwallet:masterfrom
newmattock:fix-swap-btc-selection-tests
Open

Fix swap BTC selection unit tests#1008
newmattock wants to merge 1 commit into
eigenwallet:masterfrom
newmattock:fix-swap-btc-selection-tests

Conversation

@newmattock
Copy link
Copy Markdown

@newmattock newmattock commented May 12, 2026

Summary

  • wait for the first wallet refresh before selecting a quote so tests do not race the initial zero-balance watch value
  • only request a deposit address when the swap actually needs to wait for a deposit
  • carry through the explicit max_giveable spending fee and update swap binary tests to assert that fee contract
  • make deposit-wait tests deterministic with paused Tokio time

Refs #724.

Testing

  • cargo fmt --package swap
  • cargo fmt --package swap -- --check
  • git diff --check
  • cargo test -p swap --bin swap --no-fail-fast

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.

1 participant