Update Deno project configuration to use 127.0.0.1 instead of localhost for network permissions and server bindings. Adjust tests to reflect changes in server address handling.
This commit is contained in:
parent
baedc1f32a
commit
9d8c52eb02
4 changed files with 14 additions and 14 deletions
|
@ -76,9 +76,9 @@ describe("DenoHttpServer", () => {
|
|||
|
||||
try {
|
||||
serverInstance = server.listen(localTestPort, "localhost");
|
||||
// Use the port property directly - we know our implementation returns an object with port
|
||||
const port = (serverInstance as unknown as { port: number }).port;
|
||||
assertEquals(port, localTestPort);
|
||||
// Our implementation returns an object with address() that returns {port}
|
||||
const addr = serverInstance.address() as { port: number };
|
||||
assertEquals(localTestPort, addr.port);
|
||||
} finally {
|
||||
if (serverInstance) {
|
||||
server.close();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue