diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-03-24 17:24:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-24 12:24:58 -0400 |
commit | 30bcf6a2ea620aa989a7362e7f4a62fc11743bb4 (patch) | |
tree | a1e0721425a34c40142230fe392cac15170a6791 /std/http/testdata | |
parent | b2478f3a217d5decbb638bf46e169ee58f17adad (diff) |
Revert "avoid using same port number for test (#4147)"
Ref #4467
This reverts commit 60cee4f045778777a16b6fffd6d5b9a1400d7246.
Diffstat (limited to 'std/http/testdata')
-rw-r--r-- | std/http/testdata/simple_https_server.ts | 3 | ||||
-rw-r--r-- | std/http/testdata/simple_server.ts | 5 |
2 files changed, 3 insertions, 5 deletions
diff --git a/std/http/testdata/simple_https_server.ts b/std/http/testdata/simple_https_server.ts index 9e3045609..9330b4172 100644 --- a/std/http/testdata/simple_https_server.ts +++ b/std/http/testdata/simple_https_server.ts @@ -2,10 +2,9 @@ // This is an example of a https server import { serveTLS } from "../server.ts"; -const port = parseInt(Deno.args[0] || "4503"); const tlsOptions = { hostname: "localhost", - port, + port: 4503, certFile: "./http/testdata/tls/localhost.crt", keyFile: "./http/testdata/tls/localhost.key" }; diff --git a/std/http/testdata/simple_server.ts b/std/http/testdata/simple_server.ts index 05f169705..d8ca4cc97 100644 --- a/std/http/testdata/simple_server.ts +++ b/std/http/testdata/simple_server.ts @@ -2,9 +2,8 @@ // This is an example of a server that responds with an empty body import { serve } from "../server.ts"; -const port = parseInt(Deno.args[0] || "4502"); -const addr: Deno.ListenOptions = { port }; -console.log(`Simple server listening on ${port}`); +const addr = "0.0.0.0:4502"; +console.log(`Simple server listening on ${addr}`); for await (const req of serve(addr)) { req.respond({}); } |