Skip to content
Closed
Prev Previous commit
Next Next commit
test: use mustCall in ephemeralkeyinfo test
  • Loading branch information
sam-github committed Feb 5, 2019
commit 431fd20f0c440469448b3fa9b38a961c4342ab4f
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