Permalink
Browse files

support node v0.10

  • Loading branch information...
1 parent a17d886 commit a4987473e7c329a58dd466174019a1cbaeb1c9e3 @andrewrk andrewrk committed Mar 12, 2013
Showing with 4 additions and 76 deletions.
  1. +2 −1 .travis.yml
  2. +2 −2 package.json
  3. +0 −73 test/test.js
View
@@ -1,4 +1,5 @@
language: node_js
node_js:
- - 0.8
+ - "0.10"
+ - "0.8"
script: npm run build && npm test
View
@@ -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"
},
View
@@ -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"),
{

0 comments on commit a498747

Please sign in to comment.