Skip to content

Commit

Permalink
test: refactor parallel/test-tls-pause
Browse files Browse the repository at this point in the history
  • Loading branch information
juggernaut451 committed Feb 16, 2018
1 parent 762231d commit b008450
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit b008450

Please sign in to comment.