Skip to content

Commit

Permalink
fix(testing): More graceful shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Mar 16, 2023
1 parent 7a1c127 commit aa91bd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/testing/src/test-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class TestServer {
async destroy() {
// allow a grace period of any outstanding async tasks to complete
await new Promise(resolve => global.setTimeout(resolve, 500));
await this.app.close();
await this.app?.close();
}

private getCallerFilename(depth: number): string {
Expand Down

0 comments on commit aa91bd0

Please sign in to comment.