Skip to content

Commit 9bb2921

Browse files
author
Eric Redmond
committed
add travis config
1 parent 503c9f3 commit 9bb2921

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
language: node_js
2+
node_js:
3+
- 0.8
4+
- 0.6

test/server-test.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@ vows.describe('Server').addBatch({
1515
root = {
1616
route: "/",
1717
serviceAvailable: function(req, res, next) {
18-
self.callback(undefined, req, res, next);
19-
}
18+
next(false);
19+
},
20+
finishRequest: function(req, res) {
21+
self.callback(undefined, req, res);
22+
},
2023
};
2124
wm.add(root);
2225
wm.start(port, baseUrl);
@@ -30,8 +33,6 @@ vows.describe('Server').addBatch({
3033
},
3134
'and service is not available': function (err, req, res, next) {
3235
assert.notEqual(err, 'timeout');
33-
assert.notEqual(next, undefined);
34-
next(false);
3536
assert.equal(res.statusCode(), 503);
3637
wm.server.close()
3738
}

0 commit comments

Comments
 (0)