mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
test: use mustCall in ephemeralkeyinfo test
PR-URL: https://github.com/nodejs/node/pull/25508 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
1f4c5bdbca
commit
a06f67f454
1 file changed
+3
-2
@@ -40,13 +40,14 @@ function test(size, type, name, cipher) {
|
||||
const client = tls.connect({
|
||||
port: server.address().port,
|
||||
rejectUnauthorized: false
|
||||
}, function() {
|
||||
}, common.mustCall(function() {
|
||||
const ekeyinfo = client.getEphemeralKeyInfo();
|
||||
assert.strictEqual(ekeyinfo.type, type);
|
||||
assert.strictEqual(ekeyinfo.size, size);
|
||||
assert.strictEqual(ekeyinfo.name, name);
|
||||
server.close();
|
||||
});
|
||||
}));
|
||||
client.on('secureConnect', common.mustCall());
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user