File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,9 @@ fn success() {
107107fn skip_sync ( ) {
108108 initialize ( ) ;
109109
110+ let check_timeout = 10 ;
111+ let check_interval = 1000 ;
112+
110113 let ( wallet, online) = get_empty_wallet ! ( ) ;
111114
112115 send_to_address ( test_get_address ( & wallet) ) ;
@@ -116,7 +119,13 @@ fn skip_sync() {
116119 assert_eq ! ( transactions. len( ) , 0 ) ;
117120
118121 // transaction list reports the TX after manually syncing
119- wallet. sync ( online. clone ( ) ) . unwrap ( ) ;
120- let transactions = test_list_transactions ( & wallet, None ) ;
121- assert_eq ! ( transactions. len( ) , 1 ) ;
122+ assert ! ( wait_for_function(
123+ || {
124+ wallet. sync( online. clone( ) ) . unwrap( ) ;
125+ let transactions = test_list_transactions( & wallet, None ) ;
126+ transactions. len( ) == 1
127+ } ,
128+ check_timeout,
129+ check_interval,
130+ ) ) ;
122131}
You can’t perform that action at this time.
0 commit comments