File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,13 @@ function LocalBinary(){
1818 this . windows = true ;
1919 return 'https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal.exe' ;
2020 } else {
21- if ( this . isAlpine ( ) ) {
22- return 'https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-alpine' ;
23- } else {
24- if ( this . is64bits )
25- return 'https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-linux-x64' ;
21+ if ( this . is64bits ) {
22+ if ( this . isAlpine ( ) )
23+ return 'https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-alpine' ;
2624 else
27- return 'https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-linux-ia32' ;
25+ return 'https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-linux-x64' ;
26+ } else {
27+ return 'https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-linux-ia32' ;
2828 }
2929 }
3030 } ;
Original file line number Diff line number Diff line change @@ -354,6 +354,7 @@ describe('LocalBinary', function () {
354354 it ( 'should return download path of alpine linux binary' , function ( ) {
355355 sandBox . stub ( localBinary , 'hostOS' , 'linux' ) ;
356356 localBinary . isAlpine = sandBox . stub ( localBinary , 'isAlpine' ) . returns ( true ) ;
357+ sandBox . stub ( localBinary , 'is64bits' , true ) ;
357358 expect ( localBinary . getDownloadPath ( ) ) . to . equal ( 'https://bstack-local-prod.s3.amazonaws.com/BrowserStackLocal-alpine' ) ;
358359 } ) ;
359360
You can’t perform that action at this time.
0 commit comments