File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414runs-on : ubuntu-latest
1515
1616strategy :
17+ # TradingView authenticated tests use the same account/session secrets.
18+ # Running every Node matrix job at once makes the external websocket tests flaky.
19+ max-parallel : 1
1720matrix :
1821node-version : [14.x, 18.x, 19.x]
1922
Original file line number Diff line number Diff line change @@ -119,7 +119,11 @@ describe('Indicators', () => {
119119
120120const lastResult : any = await new Promise ( ( resolve ) => {
121121CipherB . onUpdate ( ( ) => {
122- resolve ( CipherB . periods [ 0 ] ) ;
122+ const lastPeriod = CipherB . periods [ 0 ] ;
123+
124+ if ( lastPeriod ?. VWAP !== undefined && lastPeriod ?. rsiMFI !== undefined ) {
125+ resolve ( lastPeriod ) ;
126+ }
123127} ) ;
124128} ) ;
125129
@@ -135,7 +139,7 @@ describe('Indicators', () => {
135139expect ( lastResult . Buy_and_sell_circle ) . toBeTypeOf ( 'number' ) ;
136140
137141CipherB . remove ( ) ;
138- } ) ;
142+ } , 30000 ) ;
139143
140144it . skipIf ( noAuth ) ( 'removes chart' , ( ) => {
141145console . log ( 'Closing the chart...' ) ;
You can’t perform that action at this time.
0 commit comments