@@ -206,7 +206,8 @@ function attachWorkerHelpers(worker) {
206
206
// TODO: Consider creating instances of a proper 'Worker' class
207
207
208
208
worker . buildUrl = function buildUrl ( test_path ) {
209
- return buildTestUrl ( test_path || this . test_path , this . _worker_key , this . getTestBrowserInfo ( ) ) ;
209
+ var workerKey = workerKeys [ this . id ] ? workerKeys [ this . id ] . key : null ;
210
+ return buildTestUrl ( test_path || this . test_path , workerKey , this . getTestBrowserInfo ( ) ) ;
210
211
} ;
211
212
212
213
worker . getTestBrowserInfo = function getTestBrowserInfo ( test_path ) {
@@ -287,7 +288,7 @@ var statusPoller = {
287
288
worker . awaitAck ( ) ;
288
289
289
290
worker . activityTimeout = setTimeout ( function ( ) {
290
- if ( ! worker . acknowledged ) {
291
+ if ( ! worker . isAckd ) {
291
292
var subject = 'Worker inactive for too long: ' + worker . string ;
292
293
var content = 'Worker details:\n' + JSON . stringify ( worker . config , null , 4 ) ;
293
294
utils . alertBrowserStack ( subject , content , null , function ( ) { } ) ;
@@ -308,7 +309,7 @@ var statusPoller = {
308
309
} , activityTimeout * 1000 ) ;
309
310
310
311
worker . testActivityTimeout = setTimeout ( function ( ) {
311
- if ( worker . acknowledged ) {
312
+ if ( worker . isAckd ) {
312
313
var subject = 'Tests timed out on: ' + worker . string ;
313
314
var content = 'Worker details:\n' + JSON . stringify ( worker . config , null , 4 ) ;
314
315
utils . alertBrowserStack ( subject , content , null , function ( ) { } ) ;
0 commit comments