tests are failing
pnemade opened this issue · comments
Hi,
I am packaging this module in Fedora linux. I am running tests in rpm specfile as
tap test/couch.js
TypeError: Cannot read property 'body' of undefined
at Request._callback (/home/parag/rpmbuild/BUILD/package/test/couch.js:57:14)
at self.callback (/usr/lib/node_modules/request/index.js:148:22)
at Request.emit (events.js:95:17)
at ClientRequest.self.clientErrorHandler (/usr/lib/node_modules/request/index.js:257:10)
at ClientRequest.emit (events.js:95:17)
at Socket.socketErrorListener (http.js:1551:9)
at Socket.emit (events.js:95:17)
at net.js:440:14
at process._tickCallback (node.js:419:13)
not ok test/couch.js .................................... 0/1
Command: "node" "couch.js"
TAP version 13
not ok 1 test/couch.js
---
exit: 8
stderr: |
TypeError: Cannot read property 'body' of undefined
at Request._callback (/home/parag/rpmbuild/BUILD/package/test/couch.js:57:14)
at self.callback (/usr/lib/node_modules/request/index.js:148:22)
at Request.emit (events.js:95:17)
at ClientRequest.self.clientErrorHandler (/usr/lib/node_modules/request/index.js:257:10)
at ClientRequest.emit (events.js:95:17)
at Socket.socketErrorListener (http.js:1551:9)
at Socket.emit (events.js:95:17)
at net.js:440:14
at process._tickCallback (node.js:419:13)
command: "node" "couch.js"
...
1..1
# tests 1
# fail 1
TypeError: Cannot read property 'body' of undefined
at Request._callback (/home/parag/rpmbuild/BUILD/package/test/couch.js:57:14)
at self.callback (/usr/lib/node_modules/request/index.js:148:22)
at Request.emit (events.js:95:17)
at ClientRequest.self.clientErrorHandler (/usr/lib/node_modules/request/index.js:257:10)
at ClientRequest.emit (events.js:95:17)
at Socket.socketErrorListener (http.js:1551:9)
at Socket.emit (events.js:95:17)
at net.js:440:14
at process._tickCallback (node.js:419:13)
What am I missing? This error is same for other test files also.
Thanks.
@pnemade do you have couchdb runnning on that machine? I have not seen this issue.
I'd also ensure you are running the latest node
Ah! Thank you. I missed couchdb running. After running couchdb, tests are working fine.