File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -608,7 +608,7 @@ mod test {
608
608
Amount :: from_btc( 5000.0 ) . unwrap( ) ,
609
609
bob. get_balances( ) . unwrap( ) . mine. immature
610
610
) ;
611
- alice
611
+ let _txid = alice
612
612
. send_to_address (
613
613
& bob_address,
614
614
Amount :: from_btc ( 1.0 ) . unwrap ( ) ,
@@ -624,6 +624,14 @@ mod test {
624
624
alice. get_balances( ) . unwrap( ) . mine. trusted < Amount :: from_btc( 49.0 ) . unwrap( )
625
625
&& alice. get_balances( ) . unwrap( ) . mine. trusted > Amount :: from_btc( 48.9 ) . unwrap( )
626
626
) ;
627
+
628
+ // bob wallet may not be immediately updated
629
+ for _ in 0 ..30 {
630
+ if bob. get_balances ( ) . unwrap ( ) . mine . untrusted_pending . as_sat ( ) > 0 {
631
+ break ;
632
+ }
633
+ std:: thread:: sleep ( std:: time:: Duration :: from_millis ( 100 ) ) ;
634
+ }
627
635
assert_eq ! (
628
636
Amount :: from_btc( 1.0 ) . unwrap( ) ,
629
637
bob. get_balances( ) . unwrap( ) . mine. untrusted_pending
You can’t perform that action at this time.
0 commit comments