Permalink
Browse files

update tests to support newest version of express

  • Loading branch information...
1 parent dd1adf1 commit 9ee2bb53e131d1342351b84d309a43588c95412d @brianc brianc committed Aug 12, 2012
Showing with 6 additions and 3 deletions.
  1. +1 −0 .travis.yml
  2. +5 −3 test/express.js
View
@@ -1,3 +1,4 @@
language: node_js
node_js:
+ - 0.8
- 0.6
View
@@ -46,7 +46,9 @@ app.get("/", function(req, res) {
)
})
-app.listen( 8000 )
+var server = require('http').createServer(app);
+
+server.listen( 8000 )
http.get( options, function( res ) {
var header = res.headers[ "set-cookie" ]
@@ -61,6 +63,6 @@ http.get( options, function( res ) {
http.get( options, function( res ) {
res.on( "data", function( chunk ){ body += chunk } )
res.on( "end", function(){ console.log( body ) })
- app.close()
+ server.close()
})
-})
+})

0 comments on commit 9ee2bb5

Please sign in to comment.