summaryrefslogtreecommitdiff
path: root/cli/js/tests/tls_test.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-03-24 17:24:58 +0100
committerGitHub <noreply@github.com>2020-03-24 12:24:58 -0400
commit30bcf6a2ea620aa989a7362e7f4a62fc11743bb4 (patch)
treea1e0721425a34c40142230fe392cac15170a6791 /cli/js/tests/tls_test.ts
parentb2478f3a217d5decbb638bf46e169ee58f17adad (diff)
Revert "avoid using same port number for test (#4147)"
Ref #4467 This reverts commit 60cee4f045778777a16b6fffd6d5b9a1400d7246.
Diffstat (limited to 'cli/js/tests/tls_test.ts')
-rw-r--r--cli/js/tests/tls_test.ts12
1 files changed, 5 insertions, 7 deletions
diff --git a/cli/js/tests/tls_test.ts b/cli/js/tests/tls_test.ts
index 2e6e5afc9..20dd62f9b 100644
--- a/cli/js/tests/tls_test.ts
+++ b/cli/js/tests/tls_test.ts
@@ -2,7 +2,6 @@
import {
assert,
assertEquals,
- randomPort,
createResolvable,
unitTest
} from "./test_util.ts";
@@ -44,7 +43,7 @@ unitTest(
let err;
const options = {
hostname: "localhost",
- port: randomPort(),
+ port: 4500,
certFile: "cli/tests/tls/localhost.crt",
keyFile: "cli/tests/tls/localhost.key"
};
@@ -73,11 +72,10 @@ unitTest(
unitTest({ perms: { net: true } }, function listenTLSNoReadPerm(): void {
let err;
- const port = randomPort();
try {
Deno.listenTLS({
hostname: "localhost",
- port,
+ port: 4500,
certFile: "cli/tests/tls/localhost.crt",
keyFile: "cli/tests/tls/localhost.key"
});
@@ -96,7 +94,7 @@ unitTest(
let err;
const options = {
hostname: "localhost",
- port: randomPort(),
+ port: 4500,
certFile: "cli/tests/tls/localhost.crt",
keyFile: "cli/tests/tls/localhost.key"
};
@@ -125,7 +123,7 @@ unitTest(
let err;
const options = {
hostname: "localhost",
- port: randomPort(),
+ port: 4500,
certFile: "cli/tests/tls/localhost.crt",
keyFile: "cli/tests/tls/localhost.key"
};
@@ -153,7 +151,7 @@ unitTest(
async function dialAndListenTLS(): Promise<void> {
const resolvable = createResolvable();
const hostname = "localhost";
- const port = randomPort();
+ const port = 4500;
const listener = Deno.listenTLS({
hostname,