Skip to content

Commit

Permalink
test: use mustCall in ephemeralkeyinfo test
Browse files Browse the repository at this point in the history
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 1b542e8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/parallel/test-tls-client-getephemeralkeyinfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}));
}

Expand Down

0 comments on commit 1b542e8

Please sign in to comment.