Skip to content

Commit

Permalink
Working around socket.io cleanup to fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
josephg committed Aug 30, 2011
1 parent e0e739a commit 37531ca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,9 @@ modules = [

exports[module] = require "./test/#{module}" for module in modules

# This is a little hack to get around the lack of cleanup done by socket.io. It should terminate
# the node.js process 2 seconds after all the tests are complete.
exports.cleanup = (test) ->
test.done()
setTimeout (-> process.exit(0)), 2000

0 comments on commit 37531ca

Please sign in to comment.