Permalink
Browse files

upgrade npm files to start v0.4

update tests to work with node 0.4
  • Loading branch information...
1 parent 05be477 commit a4b0008a8b8e33c313a854fe2ba360f3c5aeb71e @jonjlee jonjlee committed Jun 16, 2011
Showing with 34 additions and 20 deletions.
  1. +2 −2 .gitignore
  2. +1 −0 .npmignore
  3. +4 −0 RELEASE-NOTES.md
  4. +22 −16 package.json
  5. +2 −1 test/http.test.js
  6. +3 −1 test/monitoring.test.js
View
@@ -1,5 +1,5 @@
-results*.log
-results*.html
+results-*
*.tpl.js
.reporting.test-output.html
tmp
+node_modules
View
@@ -0,0 +1 @@
+./results-*
View
@@ -1,3 +1,7 @@
+## v0.4.0 (2011/06/16) ##
+
+Compatible with node v0.4.x
+
## v0.3.0 (2011/06/16) ##
Compatible with node v0.3.x
View
@@ -1,42 +1,48 @@
{
"name": "nodeload",
- "version": "0.3.0",
+ "version": "0.4.0",
"description": "Load testing library for node.js",
- "url": "https://github.com/benschmaus/nodeload",
- "engines": {
- "node": ">=0.3.0 <0.4.0"
+ "keywords": ["testing", "load testing", "http"],
+ "homepage": "https://github.com/benschmaus/nodeload",
+ "engines": {
+ "node": "0.4"
},
"contributors": [
"Benjamin Schmaus <benjamin.schmaus@gmail.com>",
"Jonathan Lee <jonjlee@gmail.com>",
"Robert Newson <robert.newson@gmail.com>",
"Michael Mattozzi <mike.mattozzi@gmail.com>"
],
+ "bugs": {
+ "web" : "https://github.com/benschmaus/nodeload/issues"
+ },
"repository": {
- "type": "git",
- "url": "http://g ithub.com/benschmaus/nodeload"
+ "type": "git",
+ "url": "http://github.com/benschmaus/nodeload"
},
"main": "./nodeload.js",
"bin": {
"nodeload.js": "./nodeload.js",
"nl.js": "./nl.js"
},
- "modules": {
- "config": "./lib/config",
- "loop": "./lib/loop",
- "stats": "./lib/stats",
- "monitoring": "./lib/monitoring",
- "http": "./lib/http",
- "reporting": "./lib/reporting",
- "remote": "./lib/remote"
+ "directories": {
+ "doc": "./doc",
+ "lib": "./lib",
+ "example": "./examples"
},
"scripts": {
"test": "expresso",
"preinstall": "make clean compile"
},
"devDependencies": {
- "expresso": ">=0.7.0"
+ "expresso": ">=0.7.7"
},
"dependencies": {
- }
+ },
+ "licenses": [
+ {
+ "type": "MIT",
+ "url": "https://github.com/benschmaus/nodeload/raw/master/LICENSE"
+ }
+ ]
}
View
@@ -9,8 +9,9 @@ setTimeout(function() { server.stop(); }, 1500);
module.exports = {
'example: add a new route': function(beforeExit) {
var done = false;
- server.addRoute('^/route', function() {
+ server.addRoute('^/route', function(url, req, res) {
done = true;
+ res.end();
});
var client = http.createClient(9020, '127.0.0.1'),
View
@@ -210,4 +210,6 @@ module.exports = {
assert.equal(m.stats['runtime'].length, 5);
});
}
-};
+};
+
+process.setMaxListeners(20);

0 comments on commit a4b0008

Please sign in to comment.