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) {
127127}
128128
129129function 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" ) ;
133130 setTimeout ( function ( ) {
134- if ( multiple_tests ) {
131+ if ( Object . prototype . toString . call ( config . test_path ) === '[object Array]' ) {
135132 config . test_path . forEach ( function ( path ) {
136133 launchBrowser ( browser , path ) ;
137134 } ) ;
@@ -222,6 +219,8 @@ function runTests() {
222219 launchServer ( ) ;
223220 tunnel = new Tunnel ( config . key , serverPort , config . tunnelIdentifier , function ( ) {
224221 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" ) ;
225224 browsers . forEach ( function ( browser ) {
226225 if ( browser . browser_version === "latest" ) {
227226 logger . debug ( "[%s] Finding version." , utils . browserString ( browser ) ) ;
You can’t perform that action at this time.
0 commit comments