Skip to content

Commit

Permalink
3
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKamaev committed Sep 6, 2018
1 parent 93b48a3 commit 1cb58e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/browser/connection/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,12 @@ export default class BrowserConnection extends EventEmitter {
}, this.BROWSER_RESTART_TIMEOUT);
});

console.log('restart browser: ' + this.id + ' ' + this.userAgent);

Promise.race([ restartPromise, timeoutPromise ])
.then(() => {
console.log('restarted. onTimeout: ' + onTimeout );

clearTimeout(timeout);

if (onTimeout)
Expand Down
2 changes: 2 additions & 0 deletions src/runner/test-run-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ export default class TestRunController extends EventEmitter {
async _testRunDisconnected (connection) {
this.disconnectionCount++;

console.log('_testRunDisconnected:' + this.disconnectionCount);

if (this.disconnectionCount < DISCONNECT_THRESHOLD) {
connection.supressError();

Expand Down

0 comments on commit 1cb58e2

Please sign in to comment.