Skip to content

Instantly share code, notes, and snippets.

@lingo
Created August 5, 2014 18:34
Show Gist options
  • Save lingo/c2928520b6cd65e90fae to your computer and use it in GitHub Desktop.
Save lingo/c2928520b6cd65e90fae to your computer and use it in GitHub Desktop.
superagent@0.18.2 npm test
> superagent@0.18.2 test /tmp/superagent
> make test
․․․․․․․․․․․․․․․double callback!
․double callback!
․double callback!
․double callback!
․double callback!
․double callback!
․double callback!
․double callback!
․double callback!
․double callback!
․double callback!
․double callback!
․double callback!
․double callback!
․double callback!
․double callback!
․double callback!
․double callback!
․double callback!
․double callback!
․double callback!
․double callback!
․double callback!
․double callback!
․double callback!
․double callback!
․double callback!
․․double callback!
double callback!
․double callback!
․․․․double callback!
․․․․․․․․
․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․
82 passing (1s)
30 failing
1) request with an object should format the url:
Uncaught Error: read ECONNRESET
at errnoException (net.js:904:11)
at TCP.onread (net.js:558:19)
2) request with a callback should invoke .end():
Uncaught Error: read ECONNRESET
at errnoException (net.js:904:11)
at TCP.onread (net.js:558:19)
3) request without a schema should default to http:
Uncaught Error: read ECONNRESET
at errnoException (net.js:904:11)
at TCP.onread (net.js:558:19)
4) request .end() should issue a request:
Uncaught Error: read ECONNRESET
at errnoException (net.js:904:11)
at TCP.onread (net.js:558:19)
5) request res.error should should be an Error object:
Uncaught Error: read ECONNRESET
at errnoException (net.js:904:11)
at TCP.onread (net.js:558:19)
6) request res.header should be an object:
Uncaught Error: read ECONNRESET
at errnoException (net.js:904:11)
at TCP.onread (net.js:558:19)
7) request res.charset should be set when present:
Uncaught Error: read ECONNRESET
at errnoException (net.js:904:11)
at TCP.onread (net.js:558:19)
8) request res.statusType should provide the first digit:
Uncaught Error: read ECONNRESET
at errnoException (net.js:904:11)
at TCP.onread (net.js:558:19)
9) request res.type should provide the mime-type void of params:
Uncaught Error: read ECONNRESET
at errnoException (net.js:904:11)
at TCP.onread (net.js:558:19)
10) request res.links should default to an empty object:
Uncaught Error: read ECONNRESET
at errnoException (net.js:904:11)
at TCP.onread (net.js:558:19)
11) request res.links should parse the Link header field:
Uncaught Error: read ECONNRESET
at errnoException (net.js:904:11)
at TCP.onread (net.js:558:19)
12) request req.set(field, val) should set the header field:
Uncaught Error: read ECONNRESET
at errnoException (net.js:904:11)
at TCP.onread (net.js:558:19)
13) request req.set(obj) should set the header fields:
Uncaught Error: read ECONNRESET
at errnoException (net.js:904:11)
at TCP.onread (net.js:558:19)
14) request req.unset(field) should remove the header field:
Uncaught Error: read ECONNRESET
at errnoException (net.js:904:11)
at TCP.onread (net.js:558:19)
15) request req.type(str) should set the Content-Type:
Uncaught Error: read ECONNRESET
at errnoException (net.js:904:11)
at TCP.onread (net.js:558:19)
16) request req.type(str) should map "json":
Uncaught Error: read ECONNRESET
at errnoException (net.js:904:11)
at TCP.onread (net.js:558:19)
17) request req.type(str) should map "html":
Uncaught Error: read ECONNRESET
at errnoException (net.js:904:11)
at TCP.onread (net.js:558:19)
18) request req.accept(str) should set Accept:
Uncaught Error: read ECONNRESET
at errnoException (net.js:904:11)
at TCP.onread (net.js:558:19)
19) request req.accept(str) should map "json":
Uncaught Error: read ECONNRESET
at errnoException (net.js:904:11)
at TCP.onread (net.js:558:19)
20) request req.accept(str) should map "xml":
Uncaught Error: read ECONNRESET
at errnoException (net.js:904:11)
at TCP.onread (net.js:558:19)
21) request req.accept(str) should map "html":
Uncaught Error: read ECONNRESET
at errnoException (net.js:904:11)
at TCP.onread (net.js:558:19)
22) request req.write(str) should write the given data:
Uncaught Error: write ECONNRESET
at errnoException (net.js:904:11)
at Object.afterWrite (net.js:720:19)
23) request req.pipe(stream) should pipe the response to the given stream:
Uncaught Error: read ECONNRESET
at errnoException (net.js:904:11)
at TCP.onread (net.js:558:19)
24) request req.send(str) should write the string:
Uncaught Error: read ECONNRESET
at errnoException (net.js:904:11)
at TCP.onread (net.js:558:19)
25) request req.send(Object) should default to json:
Uncaught Error: read ECONNRESET
at errnoException (net.js:904:11)
at TCP.onread (net.js:558:19)
26) request req.send(Object) when called several times should merge the
objects:
Uncaught Error: read ECONNRESET
at errnoException (net.js:904:11)
at TCP.onread (net.js:558:19)
27) request .end(fn) should check arity:
Uncaught ReferenceError: __stack is not defined
at assert (/tmp/superagent/node_modules/better-assert/index.js:25:15)
at /tmp/superagent/test/node/basic.js:378:9
at Request.callback (/tmp/superagent/lib/node/index.js:729:30)
at ClientRequest.<anonymous> (/tmp/superagent/lib/node/index.js:694:10)
at ClientRequest.EventEmitter.emit (events.js:95:17)
at Socket.socketErrorListener (http.js:1547:9)
at Socket.EventEmitter.emit (events.js:95:17)
at net.js:440:14
at process._tickCallback (node.js:419:13)
28) request .buffer() should enable buffering:
Uncaught Error: read ECONNRESET
at errnoException (net.js:904:11)
at TCP.onread (net.js:558:19)
29) request .buffer(false) should disable buffering:
Uncaught ReferenceError: __stack is not defined
at assert (/tmp/superagent/node_modules/better-assert/index.js:25:15)
at /tmp/superagent/test/node/basic.js:416:9
at Request.callback (/tmp/superagent/lib/node/index.js:729:30)
at ClientRequest.<anonymous> (/tmp/superagent/lib/node/index.js:694:10)
at ClientRequest.EventEmitter.emit (events.js:95:17)
at Socket.socketErrorListener (http.js:1547:9)
at Socket.EventEmitter.emit (events.js:95:17)
at net.js:440:14
at process._tickCallback (node.js:419:13)
30) request with a content type other than application/json or text/* should
disable buffering:
Uncaught ReferenceError: __stack is not defined
at assert (/tmp/superagent/node_modules/better-assert/index.js:25:15)
at /tmp/superagent/test/node/basic.js:467:9
at Request.callback (/tmp/superagent/lib/node/index.js:729:30)
at ClientRequest.<anonymous> (/tmp/superagent/lib/node/index.js:694:10)
at ClientRequest.EventEmitter.emit (events.js:95:17)
at Socket.socketErrorListener (http.js:1547:9)
at Socket.EventEmitter.emit (events.js:95:17)
at net.js:440:14
at process._tickCallback (node.js:419:13)
make: *** [test] Error 30
npm ERR! Test failed. See above for more details.
npm ERR! not ok code 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment