Skip to content

Commit b008450

Browse files
committed
test: refactor parallel/test-tls-pause
1 parent 762231d commit b008450

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-tls-pause.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ if (!common.hasCrypto)
2525
common.skip('missing crypto');
2626

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

3030
const assert = require('assert');
3131
const tls = require('tls');
@@ -47,7 +47,7 @@ const server = tls.Server(options, common.mustCall((socket) => {
4747
});
4848
}));
4949

50-
server.listen(0, () => {
50+
server.listen(0, common.mustCall(() => {
5151
let resumed = false;
5252
const client = tls.connect({
5353
port: server.address().port,
@@ -85,7 +85,7 @@ server.listen(0, () => {
8585
server.close();
8686
}
8787
});
88-
});
88+
}));
8989

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

0 commit comments

Comments
 (0)