Skip to content

Commit 47b1411

Browse files
authored
Merge pull request #184 from tnull/2023-11-fix-flaky-test
Fix flaky `start_stop_reinit` test
2 parents 3f997aa + 8d577d6 commit 47b1411

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/test/functional_tests.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,11 +348,12 @@ fn start_stop_reinit() {
348348
assert_eq!(node.start(), Err(Error::AlreadyRunning));
349349

350350
let funding_address = node.new_onchain_address().unwrap();
351-
let expected_amount = Amount::from_sat(100000);
352351

353-
premine_and_distribute_funds(&bitcoind, &electrsd, vec![funding_address], expected_amount);
354352
assert_eq!(node.total_onchain_balance_sats().unwrap(), 0);
355353

354+
let expected_amount = Amount::from_sat(100000);
355+
premine_and_distribute_funds(&bitcoind, &electrsd, vec![funding_address], expected_amount);
356+
356357
node.sync_wallets().unwrap();
357358
assert_eq!(node.spendable_onchain_balance_sats().unwrap(), expected_amount.to_sat());
358359

0 commit comments

Comments
 (0)