Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
test: refactor parallel/test-tls-pause
  • Loading branch information
juggernaut451 committed Feb 16, 2018
commit b00845012dab9f3c266e21e2809cc8228b00c09a
6 changes: 3 additions & 3 deletions test/parallel/test-tls-pause.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if (!common.hasCrypto)
common.skip('missing crypto');

// This test ensures that the data received over tls-server after pause
// is same as what it was send
// is same as what it was sent

const assert = require('assert');
const tls = require('tls');
Expand All @@ -47,7 +47,7 @@ const server = tls.Server(options, common.mustCall((socket) => {
});
}));

server.listen(0, () => {
server.listen(0, common.mustCall(() => {
let resumed = false;
const client = tls.connect({
port: server.address().port,
Expand Down Expand Up @@ -85,7 +85,7 @@ server.listen(0, () => {
server.close();
}
});
});
}));

process.on('exit', () => {
assert.strictEqual(sent, received);
Expand Down