Skip to content

Commit

Permalink
fix(src): forcefully close all connections after closing test server (f…
Browse files Browse the repository at this point in the history
…ixes #962)
  • Loading branch information
Xunnamius committed Jan 18, 2024
1 parent d7774b3 commit d03ca21
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ export async function testApiHandler<NextResponseJsonType = any>({
});
} finally {
server?.close();
server?.closeAllConnections();
}

function createAppRouterServer() {
Expand Down

0 comments on commit d03ca21

Please sign in to comment.