Skip to content

Commit

Permalink
fix(wd): get sessionId from driver instead of promise resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
shahata committed Mar 30, 2014
1 parent f0612f3 commit 48d2439
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sauce_launcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@ var SauceLauncher = function(args, sauceConnect, /* config.sauceLabs */ config,
driver
.init(options)
.then(
function(jobId) {
function() {
if (pendingCancellations > 0) {
pendingCancellations--;
return;
}
// Record the job details, so we can access it later with the reporter
jobMapping[self.id] = {
jobId: jobId,
jobId: driver.sessionID,
credentials: {
username: username,
password: accessKey
Expand Down

0 comments on commit 48d2439

Please sign in to comment.