Explorar o código

fix(testing): More graceful shutdown

Michael Bromley %!s(int64=2) %!d(string=hai) anos
pai
achega
aa91bd0610
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {