File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -127,11 +127,8 @@ function launchBrowser(browser, path) {
127
127
}
128
128
129
129
function launchBrowsers ( config , browser ) {
130
- var multiple_tests = Object . prototype . toString . call ( config . test_path ) === '[object Array]' ;
131
- var total_workers = config . browsers . length * ( multiple_tests ? config . test_path . length : 1 ) ;
132
- logger . info ( "Launching " + total_workers + " workers" ) ;
133
130
setTimeout ( function ( ) {
134
- if ( multiple_tests ) {
131
+ if ( Object . prototype . toString . call ( config . test_path ) === '[object Array]' ) {
135
132
config . test_path . forEach ( function ( path ) {
136
133
launchBrowser ( browser , path ) ;
137
134
} ) ;
@@ -222,6 +219,8 @@ function runTests() {
222
219
launchServer ( ) ;
223
220
tunnel = new Tunnel ( config . key , serverPort , config . tunnelIdentifier , function ( ) {
224
221
statusPoller . start ( ) ;
222
+ var total_workers = config . browsers . length * ( Object . prototype . toString . call ( config . test_path ) === '[object Array]' ? config . test_path . length : 1 ) ;
223
+ logger . info ( "Launching " + total_workers + " workers" ) ;
225
224
browsers . forEach ( function ( browser ) {
226
225
if ( browser . browser_version === "latest" ) {
227
226
logger . debug ( "[%s] Finding version." , utils . browserString ( browser ) ) ;
You can’t perform that action at this time.
0 commit comments