Skip to content

Commit

Permalink
fix: resolve app
Browse files Browse the repository at this point in the history
  • Loading branch information
scopsy committed Jun 12, 2024
1 parent 0969f9c commit c152548
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/api/e2e/echo.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ class EchoServer {
this.server.use(express.json());
this.server.use(serve({ client: this.echo }));

this.app = await this.server.listen(this.port);
await new Promise<void>((resolve) => {
this.app = this.server.listen(this.port, () => {
resolve();
});
});
}

async stop() {
Expand Down

0 comments on commit c152548

Please sign in to comment.