PATH:
usr
/
local
/
lib
/
node_modules
/
pm2
/
node_modules
/
needle
/
test
var needle = require('../'), should = require('should'); describe('when posting a very long string', function() { this.timeout(20000); function get_string(length) { var str = ''; for (var i = 0; i < length; i++) { str += 'x'; } return str; } it("shouldn't throw an EPIPE error out of nowhere", function(done) { var error; function finished() { setTimeout(function() { should.not.exist(error); done(); }, 300); } try { needle.post('https://google.com', { data: get_string(Math.pow(2, 20)) }, finished) } catch(e) { error = e; } }) })
[-] response_stream_spec.js
[edit]
[-] cookies_spec.js
[edit]
[-] helpers.js
[edit]
[-] output_spec.js
[edit]
[-] post_data_spec.js
[edit]
[-] url_spec.js
[edit]
[-] parsing_spec.js
[edit]
[-] request_stream_spec.js
[edit]
[-] errors_spec.js
[edit]
[+]
..
[-] headers_spec.js
[edit]
[+]
utils
[-] long_string_spec.js
[edit]
[-] redirect_with_timeout.js
[edit]
[-] decoder_spec.js
[edit]
[-] compression_spec.js
[edit]
[-] redirect_spec.js
[edit]
[-] querystring_spec.js
[edit]
[-] proxy_spec.js
[edit]
[-] socket_pool_spec.js
[edit]
[-] basic_auth_spec.js
[edit]