Skip to content

Commit

Permalink
test(proxy): disable keep alive to run faster
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jun 28, 2023
1 parent 7273ab4 commit 8783ab6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/proxy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ describe("", () => {
beforeEach(async () => {
app = createApp({ debug: false });
request = supertest(toNodeListener(app));
server = new Server(toNodeListener(app));
server = new Server(
{
keepAlive: false,
keepAliveTimeout: 1,
},
toNodeListener(app)
);
await new Promise((resolve) => {
server.listen(0, () => resolve(undefined));
});
Expand Down

0 comments on commit 8783ab6

Please sign in to comment.