Skip to content

Commit 892a748

Browse files
committed
Fix resumption tests on BoringSSL
1 parent 428a444 commit 892a748

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

test/parallel/test-tls-client-cert-resumption.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ async function testResumption(version, name) {
100100
else
101101
assert.strictEqual(peer.subject.CN, peerCN, where);
102102

103-
socket.resume();
103+
// N.b. BoringSSL only sends a ticket after a write:
104+
socket.end('.');
104105
}, 2));
105106

106107
server.listen(0);
@@ -142,7 +143,7 @@ async function testRejectResumedWithoutCert() {
142143
lenient.on('secureConnection', common.mustCall((socket) => {
143144
assert.strictEqual(socket.authorized, false);
144145
assert.strictEqual(socket.authorizationError, 'UNABLE_TO_GET_ISSUER_CERT');
145-
socket.resume();
146+
socket.end('.');
146147
}));
147148

148149
const strict = tls.createServer({ ...options, rejectUnauthorized: true });

0 commit comments

Comments
 (0)