From d7b84c6beba30e907c8d122c2d987c3f41eff733 Mon Sep 17 00:00:00 2001 From: Ethan Arrowood Date: Mon, 2 Oct 2023 22:11:02 -0600 Subject: [PATCH] rely on external 443 port --- test/index.test.ts | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/test/index.test.ts b/test/index.test.ts index 151e3c0..d029c51 100644 --- a/test/index.test.ts +++ b/test/index.test.ts @@ -90,25 +90,8 @@ void tap.test( ); void tap.test('connect on port 443 works', async (t) => { - let connectCount = 0; - - const server = net.createServer(); - - server.on('connection', (c) => { - connectCount++; - c.on('end', () => { - server.close(); - }); - }); - - server.listen(443); - await once(server, 'listening'); - - const socket = connect(`localhost:443`); - + const socket = connect(`github.com:443`); await t.resolves(socket.close()); - await once(server, 'close'); - t.equal(connectCount, 1, 'should connect one time'); }); for (const data of [