From 3eb8000a21e9fd9852aea4c9f1108f03bd21055e Mon Sep 17 00:00:00 2001 From: Szymon Marczak <36894700+szmarczak@users.noreply.github.com> Date: Mon, 23 Sep 2019 20:38:26 +0200 Subject: [PATCH] remove moot test --- test/agent.js | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/test/agent.js b/test/agent.js index 347a090..9c84b56 100644 --- a/test/agent.js +++ b/test/agent.js @@ -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();