summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/parallel/test-tls-basic-validations.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/parallel/test-tls-basic-validations.js b/test/parallel/test-tls-basic-validations.js
index 925c6643a1..c4e2833464 100644
--- a/test/parallel/test-tls-basic-validations.js
+++ b/test/parallel/test-tls-basic-validations.js
@@ -78,9 +78,13 @@ common.expectsError(
assert.throws(() => tls.createServer({ ticketKeys: Buffer.alloc(0) }),
/TypeError: Ticket keys length must be 48 bytes/);
-common.expectsInternalAssertion(
+assert.throws(
() => tls.createSecurePair({}),
- 'context.context must be a NativeSecureContext'
+ {
+ message: 'context must be a SecureContext',
+ code: 'ERR_TLS_INVALID_CONTEXT',
+ name: 'TypeError',
+ }
);
{