Skip to content

Commit

Permalink
support node v0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrk committed Mar 12, 2013
1 parent a17d886 commit a498747
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 76 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
@@ -1,4 +1,5 @@
language: node_js
node_js:
- 0.8
- "0.10"
- "0.8"
script: npm run build && npm test
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -29,10 +29,10 @@
"author": "Andrew Kelley",
"license": "MIT",
"engines": {
"node": ">=0.8.2 <0.10.0"
"node": ">=0.8.2"
},
"devDependencies": {
"coco": "~0.8.1",
"coco": "0.8.1",
"ncp": "~0.2.6",
"rimraf": "~2.0.2"
},
Expand Down
73 changes: 0 additions & 73 deletions test/test.js
Expand Up @@ -202,79 +202,6 @@ var steps = [
});
},
},
{
info: "log rotation and gzipping: naught log",
fn: function (cb) {
collectLogFiles("log/naught", function (err, files, data) {
if (err) return cb(err)
assert.ok(files.length > 1);
assertEqual(data,
"Bootup. booting: 5, online: 0, dying: 0, new_booting: 0, new_online: 0\n" +
"WorkerOnline. booting: 4, online: 1, dying: 0, new_booting: 0, new_online: 0\n" +
"WorkerOnline. booting: 3, online: 2, dying: 0, new_booting: 0, new_online: 0\n" +
"WorkerOnline. booting: 2, online: 3, dying: 0, new_booting: 0, new_online: 0\n" +
"WorkerOnline. booting: 1, online: 4, dying: 0, new_booting: 0, new_online: 0\n" +
"WorkerOnline. booting: 0, online: 5, dying: 0, new_booting: 0, new_online: 0\n" +
"Ready. booting: 0, online: 5, dying: 0, new_booting: 0, new_online: 0\n" +
"ShutdownOld. booting: 0, online: 4, dying: 1, new_booting: 0, new_online: 0\n" +
"ShutdownOld. booting: 0, online: 3, dying: 2, new_booting: 0, new_online: 0\n" +
"ShutdownOld. booting: 0, online: 2, dying: 3, new_booting: 0, new_online: 0\n" +
"ShutdownOld. booting: 0, online: 1, dying: 4, new_booting: 0, new_online: 0\n" +
"ShutdownOld. booting: 0, online: 0, dying: 5, new_booting: 0, new_online: 0\n" +
"OldExit. booting: 0, online: 0, dying: 4, new_booting: 0, new_online: 0\n" +
"OldExit. booting: 0, online: 0, dying: 3, new_booting: 0, new_online: 0\n" +
"OldExit. booting: 0, online: 0, dying: 2, new_booting: 0, new_online: 0\n" +
"OldExit. booting: 0, online: 0, dying: 1, new_booting: 0, new_online: 0\n" +
"OldExit. booting: 0, online: 0, dying: 0, new_booting: 0, new_online: 0\n" +
"Shutdown. booting: 0, online: 0, dying: 0, new_booting: 0, new_online: 0\n");
cb();
});
},
},
{
info: "log rotation and gzipping: stderr log",
fn: function (cb) {
collectLogFiles("log/stderr", function (err, files, data) {
if (err) return cb(err)
assert.ok(files.length > 1);
assertEqual(data,
"server3 listening\n" +
"server3 listening\n" +
"server3 listening\n" +
"server3 listening\n" +
"server3 listening\n" +
"3 stderr abcdefghijklmnopqrstuvwxyz123456789101121314151617181920\n" +
"3 stderr abcdefghijklmnopqrstuvwxyz123456789101121314151617181920\n" +
"3 stderr abcdefghijklmnopqrstuvwxyz123456789101121314151617181920\n" +
"3 stderr abcdefghijklmnopqrstuvwxyz123456789101121314151617181920\n" +
"3 stderr abcdefghijklmnopqrstuvwxyz123456789101121314151617181920\n" +
"3 stderr abcdefghijklmnopqrstuvwxyz123456789101121314151617181920\n");
cb();
});
},
},
{
info: "log rotation and gzipping: stdout log",
fn: function (cb) {
collectLogFiles("log/stdout", function (err, files, data) {
if (err) return cb(err)
assert.ok(files.length > 1);
assertEqual(data,
"server3 attempting to listen\n" +
"server3 attempting to listen\n" +
"server3 attempting to listen\n" +
"server3 attempting to listen\n" +
"server3 attempting to listen\n" +
"3 stdout abcdefghijklmnopqrstuvwxyz123456789101121314151617181920\n" +
"3 stdout abcdefghijklmnopqrstuvwxyz123456789101121314151617181920\n" +
"3 stdout abcdefghijklmnopqrstuvwxyz123456789101121314151617181920\n" +
"3 stdout abcdefghijklmnopqrstuvwxyz123456789101121314151617181920\n" +
"3 stdout abcdefghijklmnopqrstuvwxyz123456789101121314151617181920\n" +
"3 stdout abcdefghijklmnopqrstuvwxyz123456789101121314151617181920\n");
cb();
});
},
},
remove(["foo", "log", "some", "server.js"]),
use("server4.js"),
{
Expand Down

0 comments on commit a498747

Please sign in to comment.