Преглед изворни кода

fix(testing): More graceful shutdown

Michael Bromley пре 2 година
родитељ
комит
aa91bd0610
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      packages/testing/src/test-server.ts

+ 1 - 1
packages/testing/src/test-server.ts

@@ -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 {