Can't listen for port 443!


#1

Hi!

I recently integrated my project into Travis CI and I’m totally satisfied with that. But two of my tests fails because the test script tries to listen for port 443 with NodeJS’s https module.

I got the following error from my test.

{ Error: listen EACCES: permission denied 0.0.0.0:443
    at Server.setupListenHandle [as _listen2] (net.js:1260:19)
    at listenInCluster (net.js:1325:12)
    at Server.listen (net.js:1412:7)
    at Function.listen (/home/travis/build/kukko/web-wombat/src/WombatServer.js:117:6)
    at Function.init (/home/travis/build/kukko/web-wombat/src/WombatServer.js:35:9)
    at Object.<anonymous> (/home/travis/build/kukko/web-wombat/tests/secureConnection/secureConnection.js:13:3)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
  code: 'EACCES',
  errno: 'EACCES',
  syscall: 'listen',
  address: '0.0.0.0',
  port: 443 }

My Travis CI yml file is really simple.

language: node_js
node_js:
  - "lts/*"

I hope somebody can help me solve this problem.

Thanks in advance, kukko.