diff options
Diffstat (limited to 'test/pummel/test-tls-throttle.js')
-rw-r--r-- | test/pummel/test-tls-throttle.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/pummel/test-tls-throttle.js b/test/pummel/test-tls-throttle.js index fcbc8c74b..a7119944a 100644 --- a/test/pummel/test-tls-throttle.js +++ b/test/pummel/test-tls-throttle.js @@ -19,11 +19,9 @@ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. - - - // Server sends a large string. Client counts bytes and pauses every few // seconds. Makes sure that pause and resume work properly. + var common = require('../common'); var assert = require('assert'); var tls = require('tls'); @@ -55,7 +53,10 @@ var server = tls.Server(options, function(socket) { var recvCount = 0; server.listen(common.PORT, function() { - var client = tls.connect(common.PORT); + var client = tls.connect({ + port: common.PORT, + rejectUnauthorized: false + }); client.on('data', function(d) { process.stdout.write('.'); |