Skip to content
Closed
Changes from all commits
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
14 changes: 7 additions & 7 deletions test/sequential/test-https-set-timeout-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@

'use strict';
const common = require('../common');
const assert = require('assert');

if (!common.hasCrypto) {
common.skip('missing crypto');
return;
}
const https = require('https');

const tls = require('tls');
const assert = require('assert');
const fs = require('fs');
const https = require('https');
const tls = require('tls');

const tests = [];

Expand Down Expand Up @@ -69,7 +69,7 @@ test(function serverTimeout(cb) {
https.get({
port: this.address().port,
rejectUnauthorized: false
}).on('error', common.noop);
}).on('error', common.mustCall());
}));
});

Expand All @@ -90,7 +90,7 @@ test(function serverRequestTimeout(cb) {
method: 'POST',
rejectUnauthorized: false
});
req.on('error', common.noop);
req.on('error', common.mustCall());
req.write('Hello');
// req is in progress
});
Expand All @@ -111,7 +111,7 @@ test(function serverResponseTimeout(cb) {
https.get({
port: this.address().port,
rejectUnauthorized: false
}).on('error', common.noop);
}).on('error', common.mustCall());
});
});

Expand All @@ -131,7 +131,7 @@ test(function serverRequestNotTimeoutAfterEnd(cb) {
https.get({
port: this.address().port,
rejectUnauthorized: false
}).on('error', common.noop);
}).on('error', common.mustCall());
});
});

Expand Down