~yolanda.robla/ubuntu/trusty/nodejs/add_distribution

« back to all changes in this revision

Viewing changes to test/simple/test-tls-remote.js

  • Committer: Package Import Robot
  • Author(s): Jérémy Lal
  • Date: 2013-08-14 00:16:46 UTC
  • mfrom: (7.1.40 sid)
  • Revision ID: package-import@ubuntu.com-20130814001646-bzlysfh8sd6mukbo
Tags: 0.10.15~dfsg1-4
* Update 2005 patch, adding a handful of tests that can fail on
  slow platforms.
* Add 1004 patch to fix test failures when writing NaN to buffer
  on mipsel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
  assert.equal(server.address().address, '127.0.0.1');
49
49
  assert.equal(server.address().port, common.PORT);
50
50
 
51
 
  var c = tls.connect(common.PORT, '127.0.0.1', function() {
 
51
  var c = tls.connect({
 
52
    host: '127.0.0.1',
 
53
    port: common.PORT,
 
54
    rejectUnauthorized: false
 
55
  }, function() {
52
56
    assert.equal(c.address().address, c.socket.address().address);
53
57
    assert.equal(c.address().port, c.socket.address().port);
54
58