Skip to content

Commit

Permalink
remove moot test
Browse files Browse the repository at this point in the history
  • Loading branch information
szmarczak committed Sep 23, 2019
1 parent 2c5af3f commit 3eb8000
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions test/agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -404,40 +404,6 @@ if (isCompatible) {
await secondServer.gracefulClose();
});

test('the anti-overload mechanism looks for valid authorities', singleRequestWrapper, async (t, server) => {
const secondServer = await createServer();
const agent = new Agent({
maxSessions: 1
});

await secondServer.listen();

const session = await agent.getSession(server.url);
const request = session.request();

let isResolved = false;
const secondSessionPromise = agent.getSession(server.url);

// eslint-disable-next-line promise/prefer-await-to-then
secondSessionPromise.then(() => {
isResolved = true;
});

await agent.getSession(secondServer.url);

await setImmediateAsync();

t.false(isResolved);

request.close();

await setImmediateAsync();

t.true(isResolved);

await secondServer.gracefulClose();
});

test('sessions can be manually overloaded', singleRequestWrapper, async (t, server) => {
const agent = new Agent();

Expand Down

0 comments on commit 3eb8000

Please sign in to comment.