Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions bin/testObservability/reporter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ class MyReporter {
}

await this.uploadTestSteps();
this.stopHttpServer();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are all test cases appearing on new dashboard? Why this sudden change is required?
Also, who is starting the server again in next set of test cases?
Can someone also explain the root cause of this issue?

});
}

Expand Down Expand Up @@ -287,6 +288,20 @@ class MyReporter {
debugOnConsole(`Exception in starting reporter server : ${error}`);
debug(`Exception in starting reporter server : ${error}`, true, error);
}
}

stopHttpServer() {
if (this.httpServer) {
try {
this.httpServer.close(() => {
debugOnConsole('Reporter HTTP server closed');
});
this.httpServer = null;
} catch (error) {
debugOnConsole(`Exception in stopping reporter server : ${error}`);
debug(`Exception in stopping reporter server : ${error}`, true, error);
}
}
}

registerListeners() {
Expand Down