Skip to content

Commit

Permalink
rely on external 443 port
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethan Arrowood committed Oct 3, 2023
1 parent 48fedd0 commit d7b84c6
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 [
Expand Down

0 comments on commit d7b84c6

Please sign in to comment.