Skip to content

Commit

Permalink
2
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKamaev committed Sep 5, 2018
1 parent 1c70c9c commit ef811e4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/test-run/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,16 +373,21 @@ export default class TestRun extends EventEmitter {
}

_resolveCurrentDriverTask (result) {

this.currentDriverTask.resolve(result);
this.driverTaskQueue.shift();

console.log('_resolveCurrentDriverTask: ' + this.test.name + ' length: ' + this.driverTaskQueue.length);

if (this.testDoneCommandQueued)
this._removeAllNonServiceTasks();
}

_rejectCurrentDriverTask (err) {
if (!this.driverTaskQueue[0])
if (!this.driverTaskQueue[0]) {
console.log(this.test.name);
console.log('no task');
}

err.callsite = err.callsite || this.driverTaskQueue[0].callsite;
err.isRejectedDriverTask = true;
Expand Down

0 comments on commit ef811e4

Please sign in to comment.