test suite fails w/ ECONNREFUSED
Created by: jfis
I'm running into issues that seem like a problem with just my system but I was hoping to find some assistance.
node 0.4.7
http-proxy 0.5.0
vows 0.5.8
colors 0.5.0
optimist 0.2.0
request 1.9.5
socket.io 0.6.17
on mac os x 10.6.7
When I run
vows test/*-test.js --spec
all tests fail that are not expecting a 404 or 500.
The errors look like this:
When using server created by httpProxy.createServer() with no latency and a valid target server
✗ should receive 'hello localhost'
» expected 'hello localhost',
got 'An error has occurred: {"stack":"Error: ECONNREFUSED, Connection refused\\n
at Socket._onConnect (net.js:599:18)\\n at IOWatcher.onWritable [as callback
(net.js:186:12)","message":"ECONNREFUSED, Connection
refused","errno":61,"code":"ECONNREFUSED","syscall":"connect"}' (==) // helpers.js:77
Anyone seen this before? Seems like I'm missing something important. There is very little information on ECONNREFUSED. I do know that the error happens on making the request from proxy to target using the 'request' module (which is expected given the error) but I can't determine why. I'm hoping there's something simple I missed.