summaryrefslogtreecommitdiff
path: root/test/parallel/test-crypto-verify-failure.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-crypto-verify-failure.js')
-rw-r--r--test/parallel/test-crypto-verify-failure.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-crypto-verify-failure.js b/test/parallel/test-crypto-verify-failure.js
index f260ccfe12..fdc2721502 100644
--- a/test/parallel/test-crypto-verify-failure.js
+++ b/test/parallel/test-crypto-verify-failure.js
@@ -36,9 +36,9 @@ function verify() {
.verify(certPem, 'asdfasdfas', 'base64');
}
-server.listen(common.PORT, function() {
+server.listen(0, function() {
tls.connect({
- port: common.PORT,
+ port: this.address().port,
rejectUnauthorized: false
}, function() {
verify();