Skip to content

Commit 56134e2

Browse files
committed
Update worker config when changing worker URL so that timeouts log properly
Without this, the log for timeouts would always show the initial URL, which can change when running multiple pages per worker.
1 parent a63a3fa commit 56134e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/server.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ exports.Server = function Server(bsClient, workers) {
167167
}
168168
url += '_worker_key=' + worker._worker_key + '&_browser_string=' + getTestBrowserInfo(worker) ;
169169
worker.test_path = next_path;
170+
worker.config.url = next_path;
170171
bsClient.changeUrl(worker.id, {url: url}, function() {
171172
callback(true);
172173
});

0 commit comments

Comments
 (0)