Skip to content

Commit 52f1899

Browse files
author
Rohan Jain
committed
Add timeout to worker tests
1 parent 811ea7d commit 52f1899

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

bin/runner.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,14 @@ function launchBrowser(browser) {
120120
utils.alertBrowserStack(subject, content);
121121
}
122122
}, 60 * 1000);
123+
124+
setTimeout(function () {
125+
if (workers[key]) {
126+
var subject = "Tests timeed out on: " + worker.string;
127+
var content = "Worker details:\n" + JSON.stringify(worker, null, 4);
128+
utils.alertBrowserStack(subject, content);
129+
}
130+
}, (config.timeout || 300) * 1000);
123131
}
124132
});
125133
}, 2000);

0 commit comments

Comments
 (0)