Skip to content

Commit

Permalink
Close idle connections before stopping server
Browse files Browse the repository at this point in the history
nodejs/undici#3279

Signed-off-by: Andrew Haines <[email protected]>
  • Loading branch information
haines committed Jun 3, 2024
1 parent 07cf84b commit 20482c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions private/test/src/matrix-node/embedded/loader.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ class DummyServer {

public async stop(): Promise<void> {
await new Promise<void>((resolve) => {
this.server.closeIdleConnections();
this.server.close(() => {
resolve();
});
Expand Down

0 comments on commit 20482c6

Please sign in to comment.