Skip to content

Commit

Permalink
globalsInstance undefined key error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
harshit-bs committed Apr 12, 2023
1 parent 7513021 commit ace9f43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/runner/test-runners/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ class DefaultRunner {
* @return {Promise}
*/
closeOpenSessions(err) {
const {globalsInstance = {}} = this.addtOpts;
const {globalsInstance} = this.addtOpts;

if (globalsInstance.inspectorServer) {
if (globalsInstance && globalsInstance.inspectorServer) {
globalsInstance.inspectorServer.closeSocket();
}

Expand Down

0 comments on commit ace9f43

Please sign in to comment.