Skip to content

fix mempool wallet tests#2012

Open
OBorce wants to merge 1 commit intomasterfrom
fix/wallet-mempool-tests
Open

fix mempool wallet tests#2012
OBorce wants to merge 1 commit intomasterfrom
fix/wallet-mempool-tests

Conversation

@OBorce
Copy link
Contributor

@OBorce OBorce commented Feb 13, 2026

  • only send wallet events when tx has actually changed state
  • when checking balance in functional tests check in-mempool states as well

@OBorce OBorce force-pushed the fix/wallet-mempool-tests branch 3 times, most recently from 72b3097 to 853ace0 Compare February 16, 2026 08:47
- only send wallet events when tx has actually changed state
- when checking balance in functional tests check in-mempool states as
  well
@OBorce OBorce force-pushed the fix/wallet-mempool-tests branch from 853ace0 to 8c5fd4a Compare February 16, 2026 14:42
#[rstest]
#[trace]
#[case(test_utils::random::Seed::from_entropy())]
#[case(test_utils::random::Seed::from(8923949037148047608))]
Copy link
Contributor

Choose a reason for hiding this comment

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

Revert

));
assert_eq!(evt4.tx_id(), evt1.tx_id());
let events =
collect_until_confirmed(&mut wallet_events, evt1.tx_id(), Duration::from_millis(500))
Copy link
Contributor

Choose a reason for hiding this comment

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

IMO the timeout should be noticeably bigger, e.g. 10s, otherwise the test may spuriously fail on a slow machine when tests are run in parallel.

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