File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -69,12 +69,12 @@ export async function waitForActiveChannel(
6969 } ) => PromiseLike < { channels : any } > | { channels : any } ;
7070 } ,
7171 nodeId : string ,
72- maxRetries = 20
72+ maxRetries = 200
7373) {
7474 let retries = 0 ;
7575
7676 while ( retries < maxRetries ) {
77- await sleep ( 1000 ) ;
77+ await sleep ( 100 ) ;
7878 const { channels } = await lnd . listChannels ( {
7979 peer : Buffer . from ( nodeId , 'hex' ) ,
8080 activeOnly : true ,
Original file line number Diff line number Diff line change @@ -100,8 +100,12 @@ describe('@lightning - Lightning', () => {
100100 await waitForActiveChannel ( lnd , ldkNodeId ) ;
101101
102102 // Toast message
103- await waitForToast ( 'SpendingBalanceReadyToast' ) ;
104-
103+ if ( driver . isIOS ) {
104+ await expectText ( 'Spending Balance Ready' ) ;
105+ await expectText ( 'Spending Balance Ready' , { visible : false } ) ;
106+ } else {
107+ await waitForToast ( 'SpendingBalanceReadyToast' ) ;
108+ }
105109 // check channel status
106110 await checkChannelStatus ( ) ;
107111
You can’t perform that action at this time.
0 commit comments