From a4b0008a8b8e33c313a854fe2ba360f3c5aeb71e Mon Sep 17 00:00:00 2001 From: Jonathan Lee Date: Thu, 16 Jun 2011 17:11:13 -0400 Subject: [PATCH] upgrade npm files to start v0.4 update tests to work with node 0.4 --- .gitignore | 4 ++-- .npmignore | 1 + RELEASE-NOTES.md | 4 ++++ package.json | 38 ++++++++++++++++++++++---------------- test/http.test.js | 3 ++- test/monitoring.test.js | 4 +++- 6 files changed, 34 insertions(+), 20 deletions(-) create mode 100644 .npmignore diff --git a/.gitignore b/.gitignore index 6e0acce..653b84c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ -results*.log -results*.html +results-* *.tpl.js .reporting.test-output.html tmp +node_modules \ No newline at end of file diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..e588de8 --- /dev/null +++ b/.npmignore @@ -0,0 +1 @@ +./results-* diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 816642a..35880df 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -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 diff --git a/package.json b/package.json index 243008f..1038134 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,11 @@ { "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 ", @@ -12,31 +13,36 @@ "Robert Newson ", "Michael Mattozzi " ], + "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" + } + ] } \ No newline at end of file diff --git a/test/http.test.js b/test/http.test.js index f84e284..b5e757f 100644 --- a/test/http.test.js +++ b/test/http.test.js @@ -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'), diff --git a/test/monitoring.test.js b/test/monitoring.test.js index fd239c3..5a8c9b7 100644 --- a/test/monitoring.test.js +++ b/test/monitoring.test.js @@ -210,4 +210,6 @@ module.exports = { assert.equal(m.stats['runtime'].length, 5); }); } -}; \ No newline at end of file +}; + +process.setMaxListeners(20); \ No newline at end of file