Skip to content

Commit 23b6b76

Browse files
committed
remove wrong test
1 parent 1088e9d commit 23b6b76

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

packages/utils/src/get-port.test.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -73,22 +73,6 @@ describe('getPort', () => {
7373
expect(port2).toEqual(port3);
7474
});
7575

76-
it('should handle servers listening on different interfaces', async () => {
77-
const server1 = http.createServer();
78-
const server2 = http.createServer();
79-
servers.push(server1, server2);
80-
81-
// One on localhost, one on all interfaces
82-
server1.listen(0, '127.0.0.1');
83-
server2.listen(0, '0.0.0.0');
84-
85-
const port = await getPort();
86-
const addr1 = server1.address() as AddressInfo;
87-
88-
// Should still return the first port
89-
expect(port).toEqual(addr1.port);
90-
});
91-
9276
it('should handle IPv6 addresses', async () => {
9377
const server = http.createServer();
9478
servers.push(server);

0 commit comments

Comments
 (0)