Skip to content

Commit

Permalink
rearrange again
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicole White committed Mar 5, 2024
1 parent 1a3481a commit f801ad1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/handlers/testing/exec/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class RunManager {

async handleEndRun(args: { testExternalId: string }): Promise<void> {
emitter.emit(EventName.RUN_ENDED, { testExternalId: args.testExternalId });
const runId = this.currentRunId({ testExternalId: args.testExternalId });

if (this.ciContext) {
try {
await commentOnPullRequest({
Expand All @@ -156,6 +156,7 @@ class RunManager {
}

try {
const runId = this.currentRunId({ testExternalId: args.testExternalId });
await this.post(`/runs/${runId}/end`);
} finally {
delete this.testExternalIdToRunId[args.testExternalId];
Expand Down

0 comments on commit f801ad1

Please sign in to comment.