Skip to content

Instantly share code, notes, and snippets.

@jagill
Created December 6, 2013 16:02
Show Gist options
  • Save jagill/7827182 to your computer and use it in GitHub Desktop.
Save jagill/7827182 to your computer and use it in GitHub Desktop.
Test failures for oortcloud/node-ddp-client#master I'm on OS X 10.8.5, with node version 0.8.21
jag@coati:/tmp/node-ddp-client (master)$ npm install && npm test
> ddp@0.3.7 test /private/tmp/node-ddp-client
> ./node_modules/mocha/bin/mocha test
․․․․․․․․․
✖ 4 of 9 tests failed:
1) Connect to remote server should connect to localhost by default:
AssertionError: [["ws://localhost:3000/websocket",{}]] deepEqual [["ws://localhost:3000/websocket"]]
at Context.DDPClient.host (/private/tmp/node-ddp-client/test/ddp-client.js:31:12)
at Test.Runnable.run (/private/tmp/node-ddp-client/node_modules/mocha/lib/runnable.js:213:32)
at Runner.runTest (/private/tmp/node-ddp-client/node_modules/mocha/lib/runner.js:351:10)
at Runner.runTests.next (/private/tmp/node-ddp-client/node_modules/mocha/lib/runner.js:397:12)
at next (/private/tmp/node-ddp-client/node_modules/mocha/lib/runner.js:277:14)
at Runner.hooks (/private/tmp/node-ddp-client/node_modules/mocha/lib/runner.js:286:7)
at next (/private/tmp/node-ddp-client/node_modules/mocha/lib/runner.js:234:23)
at Runner.hook (/private/tmp/node-ddp-client/node_modules/mocha/lib/runner.js:249:7)
at Hook.Runnable.run (/private/tmp/node-ddp-client/node_modules/mocha/lib/runnable.js:215:5)
at next (/private/tmp/node-ddp-client/node_modules/mocha/lib/runner.js:243:10)
at Runner.hook (/private/tmp/node-ddp-client/node_modules/mocha/lib/runner.js:254:5)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
2) Connect to remote server should connect to the provided host:
AssertionError: [["ws://myserver.com:3000/websocket",{}]] deepEqual [["ws://myserver.com:3000/websocket"]]
at Context.DDPClient.host (/private/tmp/node-ddp-client/test/ddp-client.js:35:12)
at Test.Runnable.run (/private/tmp/node-ddp-client/node_modules/mocha/lib/runnable.js:213:32)
at Runner.runTest (/private/tmp/node-ddp-client/node_modules/mocha/lib/runner.js:351:10)
at Runner.runTests.next (/private/tmp/node-ddp-client/node_modules/mocha/lib/runner.js:397:12)
at next (/private/tmp/node-ddp-client/node_modules/mocha/lib/runner.js:277:14)
at Runner.hooks (/private/tmp/node-ddp-client/node_modules/mocha/lib/runner.js:286:7)
at next (/private/tmp/node-ddp-client/node_modules/mocha/lib/runner.js:234:23)
at Runner.hook (/private/tmp/node-ddp-client/node_modules/mocha/lib/runner.js:249:7)
at Hook.Runnable.run (/private/tmp/node-ddp-client/node_modules/mocha/lib/runnable.js:215:5)
at next (/private/tmp/node-ddp-client/node_modules/mocha/lib/runner.js:243:10)
at Runner.hook (/private/tmp/node-ddp-client/node_modules/mocha/lib/runner.js:254:5)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
3) Connect to remote server should connect to the provided host and port:
AssertionError: [["ws://myserver.com:42/websocket",{}]] deepEqual [["ws://myserver.com:42/websocket"]]
at Context.DDPClient.host (/private/tmp/node-ddp-client/test/ddp-client.js:39:12)
at Test.Runnable.run (/private/tmp/node-ddp-client/node_modules/mocha/lib/runnable.js:213:32)
at Runner.runTest (/private/tmp/node-ddp-client/node_modules/mocha/lib/runner.js:351:10)
at Runner.runTests.next (/private/tmp/node-ddp-client/node_modules/mocha/lib/runner.js:397:12)
at next (/private/tmp/node-ddp-client/node_modules/mocha/lib/runner.js:277:14)
at Runner.hooks (/private/tmp/node-ddp-client/node_modules/mocha/lib/runner.js:286:7)
at next (/private/tmp/node-ddp-client/node_modules/mocha/lib/runner.js:234:23)
at Runner.hook (/private/tmp/node-ddp-client/node_modules/mocha/lib/runner.js:249:7)
at Hook.Runnable.run (/private/tmp/node-ddp-client/node_modules/mocha/lib/runnable.js:215:5)
at next (/private/tmp/node-ddp-client/node_modules/mocha/lib/runner.js:243:10)
at Runner.hook (/private/tmp/node-ddp-client/node_modules/mocha/lib/runner.js:254:5)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
4) Connect to remote server should use ssl if the port is 443:
AssertionError: [["wss://myserver.com:443/websocket",{"rejectUnauthorized":true}]] deepEqual [["wss://myserver.com:443/websocket"]]
at Context.<anonymous> (/private/tmp/node-ddp-client/test/ddp-client.js:43:12)
at Test.Runnable.run (/private/tmp/node-ddp-client/node_modules/mocha/lib/runnable.js:213:32)
at Runner.runTest (/private/tmp/node-ddp-client/node_modules/mocha/lib/runner.js:351:10)
at Runner.runTests.next (/private/tmp/node-ddp-client/node_modules/mocha/lib/runner.js:397:12)
at next (/private/tmp/node-ddp-client/node_modules/mocha/lib/runner.js:277:14)
at Runner.hooks (/private/tmp/node-ddp-client/node_modules/mocha/lib/runner.js:286:7)
at next (/private/tmp/node-ddp-client/node_modules/mocha/lib/runner.js:234:23)
at Runner.hook (/private/tmp/node-ddp-client/node_modules/mocha/lib/runner.js:249:7)
at Hook.Runnable.run (/private/tmp/node-ddp-client/node_modules/mocha/lib/runnable.js:215:5)
at next (/private/tmp/node-ddp-client/node_modules/mocha/lib/runner.js:243:10)
at Runner.hook (/private/tmp/node-ddp-client/node_modules/mocha/lib/runner.js:254:5)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
npm ERR! Test failed. See above for more details.
npm ERR! not ok code 0
jag@coati:/tmp/node-ddp-client (master)$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment