★ wanayoo — archive 1999 https://github.com/nodejs/node/commit/1b542e8ba0Nouvelle recherche | Portail wanayoo
Skip to content
Permalink
Browse files
test: use mustCall in ephemeralkeyinfo test
PR-URL: #25508
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
sam-github authored and addaleax committed Feb 7, 2019
1 parent 898cf78 commit 1b542e8ba0e0aa79f80222be7d52b77a8187611a
Showing with 3 additions and 2 deletions.
  1. +3 −2 test/parallel/test-tls-client-getephemeralkeyinfo.js
@@ -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());
}));
}

0 comments on commit 1b542e8

Please sign in to comment.