fixes #2 CookieList returning same data for each cookie
new structure for node-curl
This commit is contained in:
parent
e791a14c6e
commit
90f3135c8c
11 changed files with 461 additions and 237 deletions
|
@ -1,30 +1,39 @@
|
|||
// Generated by ToffeeScript 1.2.0-0
|
||||
// Generated by ToffeeScript 1.3.3
|
||||
(function() {
|
||||
var assert, curl, i, j, next, once, _i;
|
||||
var Curl, assert, i, j, next, _fn, _i;
|
||||
|
||||
curl = require('../index');
|
||||
Curl = require('../index');
|
||||
|
||||
assert = require('assert');
|
||||
|
||||
j = 0;
|
||||
|
||||
(next = function() {
|
||||
console.info("curl instances: ", curl.get_count());
|
||||
console.info("curl instances: ", Curl.get_count());
|
||||
return setTimeout(next, 1000);
|
||||
})();
|
||||
|
||||
for (i = _i = 1; _i <= 100; i = ++_i) {
|
||||
(once = function() {
|
||||
_fn = function() {
|
||||
var curl, once;
|
||||
curl = Curl.create();
|
||||
return (once = function() {
|
||||
var _this = this;
|
||||
return curl('localhost/test.html', function(_$$_err, _$$_res) {
|
||||
var err, res;
|
||||
err = _$$_err;
|
||||
res = _$$_res;
|
||||
assert.equal(res.body.length, 1468);
|
||||
if (++j % 100 === 0) console.info(j);
|
||||
if (j < 20000) return once();
|
||||
if (++j % 100 === 0) {
|
||||
console.info(j);
|
||||
}
|
||||
if (j < 5000) {
|
||||
return once();
|
||||
}
|
||||
});
|
||||
})();
|
||||
};
|
||||
for (i = _i = 1; _i <= 100; i = ++_i) {
|
||||
_fn();
|
||||
}
|
||||
|
||||
}).call(this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue