We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1088e9d commit 23b6b76Copy full SHA for 23b6b76
packages/utils/src/get-port.test.ts
@@ -73,22 +73,6 @@ describe('getPort', () => {
73
expect(port2).toEqual(port3);
74
});
75
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
92
it('should handle IPv6 addresses', async () => {
93
const server = http.createServer();
94
servers.push(server);
0 commit comments