Skip to content

test(electrums): fix failing test_one_unavailable_electrum_proto_version#2412

Merged
shamardy merged 2 commits intodevfrom
fix-electrum-version-test
Apr 11, 2025
Merged

test(electrums): fix failing test_one_unavailable_electrum_proto_version#2412
shamardy merged 2 commits intodevfrom
fix-electrum-version-test

Conversation

@shamardy
Copy link
Copy Markdown
Collaborator

@shamardy shamardy commented Apr 11, 2025

Couldn't find an electrum with a version other than 1.4 here https://1209k.com/bitcoin-eye/ele.php (for all coins not only btc) so decided to ignore the failing test as there is no way to fix it.

Did this #2412 (comment) instead

@mariocynicys
Copy link
Copy Markdown
Collaborator

we can adjust the test scenario, faking the accepted server version instead to unrealistic number.
mock it onetime with OrdRange::new(7.4, 7.4).unwrap() then re-mock it with 1.4 again and test failure and success cases.

@shamardy
Copy link
Copy Markdown
Collaborator Author

we can adjust the test scenario, faking the accepted server version instead to unrealistic number.
mock it onetime with OrdRange::new(7.4, 7.4).unwrap() then re-mock it with 1.4 again and test failure and success cases

Thanks for the suggestion, done.

Copy link
Copy Markdown
Collaborator

@mariocynicys mariocynicys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@shamardy shamardy changed the title test(electrums): ignore failing test_one_unavailable_electrum_proto_version test(electrums): fix failing test_one_unavailable_electrum_proto_version Apr 11, 2025
@shamardy shamardy merged commit c5b9fc0 into dev Apr 11, 2025
25 of 26 checks passed
@shamardy shamardy deleted the fix-electrum-version-test branch April 11, 2025 19:59
dimxy pushed a commit to dimxy/komodo-defi-framework that referenced this pull request May 13, 2025
* dev: (26 commits)
  chore(deps): remove base58 and replace it completely with bs58 (GLEECBTC#2427)
  feat(tron): initial groundwork for full TRON integration (GLEECBTC#2425)
  fix(UTXO): improve tx fee calculation and min relay fee handling (GLEECBTC#2316)
  deps(timed-map): bump to 1.3.1 (GLEECBTC#2413)
  improvement(tendermint): safer IBC channel handler (GLEECBTC#2298)
  chore(release): complete v2.4.0-beta changelogs  (GLEECBTC#2436)
  fix(event-streaming): initial addresses registration in utxo balance streaming (GLEECBTC#2431)
  improvement(watchers): re-write use-watchers handling (GLEECBTC#2430)
  fix(evm): make withdraw_nft work in HD mode (GLEECBTC#2424)
  feat(taproot): support parsing taproot output address types
  chore(RPC): use consistent param name for QTUM delegation (GLEECBTC#2419)
  fix(makerbot): add LiveCoinWatch price provider (GLEECBTC#2416)
  chore(release): add changelog entries for v2.4.0-beta (GLEECBTC#2415)
  fix(wallets): prevent path traversal in `wallet_file_path` and update file extension (GLEECBTC#2400)
  fix(nft): make `update_nft` work with hd wallets using the enabled address (GLEECBTC#2386)
  fix(wasm): unify error handling for mm2_main (GLEECBTC#2389)
  fix(tx-history): token information and query (GLEECBTC#2404)
  test(electrums): fix failing test_one_unavailable_electrum_proto_version (GLEECBTC#2412)
  improvement(network): remove static IPs from seed lists (GLEECBTC#2407)
  improvement(best-orders): return an rpc error when we can't find best orders (GLEECBTC#2318)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants