Skip to content

Commit 8f51ec2

Browse files
committed
Fixes #64 and also resolves #5
1 parent 60235a9 commit 8f51ec2

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

bin/cli.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ function terminateAllWorkers(callback) {
3535
if(worker) {
3636
logger.debug('[%s] Terminated', worker.string);
3737
clearTimeout(worker.activityTimeout);
38+
clearTimeout(worker.testActivityTimeout);
3839
delete workers[key];
3940
delete workerKeys[worker.id];
4041
}
@@ -220,7 +221,7 @@ var statusPoller = {
220221
}
221222
}, activityTimeout * 1000);
222223

223-
setTimeout(function () {
224+
worker.testActivityTimeout = setTimeout(function () {
224225
if (worker.acknowledged) {
225226
var subject = "Tests timed out on: " + worker.string;
226227
var content = "Worker details:\n" + JSON.stringify(worker.config, null, 4);
@@ -293,4 +294,3 @@ try {
293294
console.log(e);
294295
console.log('Invalid command.');
295296
}
296-

lib/server.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ exports.Server = function Server(bsClient, workers) {
198198
logger.debug('[%s] Terminated', getTestBrowserInfo(worker));
199199

200200
clearTimeout(workers[uuid].activityTimeout);
201+
clearTimeout(workers[uuid].testActivityTimeout);
201202
delete workers[uuid];
202203

203204
if (utils.objectSize(workers) === 0) {

lib/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var uuid = function uuidGenerator() {
2626
};
2727

2828
var browserString = function browserString(config) {
29-
return config.os + ' ' + config.os_version + ', ' + titleCase(config.browser || config.device) + ' ' + (config.browser_version || config.device);
29+
return config.os + ' ' + config.os_version + ', ' + (config.browser == 'ie' ? 'IE' : titleCase(config.browser || config.device)) + ' ' + (config.browser_version || config.device);
3030
};
3131

3232
var objectSize = function objectSize(obj) {

0 commit comments

Comments
 (0)