test: refactor test-https-simple.js
authorRich Trott <rtrott@gmail.com>
Wed, 19 Aug 2015 06:15:25 +0000 (23:15 -0700)
committerRich Trott <rtrott@gmail.com>
Mon, 24 Aug 2015 21:09:25 +0000 (14:09 -0700)
commitd6167689d9733f28669d823cc33c9f265c63ea3f
tree372e5c71f80de0de33ee842c45d0d6cd3358e475
parentecb840c14a020d77a45a71dab1a308a741ae1258
test: refactor test-https-simple.js

This refactoring:

* eliminates the need for the external `curl` command
* speeds the test by running the two test requests simultaneously
* checks the type of error in the test that expects a failure
    (previously, any error type would cause the test to pass)

PR-URL: https://github.com/nodejs/node/pull/2433
Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
test/parallel/test-https-simple.js