Skip to content

Commit

Permalink
test: style/wording changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Trott committed Aug 24, 2015
1 parent 9a9b14c commit 079257f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/parallel/test-https-simple.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const server = https.createServer(options, function(req, res) {


server.listen(common.PORT, function() {
// Do a request ignoring the invalid server certs
// Do a request ignoring the unauthorized server certs
const noCertCheckOptions = {
hostname: '127.0.0.1',
port: common.PORT,
Expand Down Expand Up @@ -73,11 +73,11 @@ server.listen(common.PORT, function() {

const checkCertReq = https.request(checkCertOptions, function(res) {
res.on('data', function() {
throw Error('data should not be received');
throw new Error('data should not be received');
});

res.on('end', function() {
throw Error('connection should not be established');
throw new Error('connection should not be established');
});
});
checkCertReq.end();
Expand Down

0 comments on commit 079257f

Please sign in to comment.