Skip to content
This repository has been archived by the owner on Jul 18, 2023. It is now read-only.

Commit

Permalink
Clean up after each to avoid mem-leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
ngs committed Dec 15, 2014
1 parent a8463c5 commit ba89ff3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/alias_test.coffee
Expand Up @@ -24,7 +24,7 @@ describe 'alias', ->
# load help scripts to test help messages
hubotScripts = path.resolve 'node_modules', 'hubot', 'src', 'scripts'
robot.loadFile hubotScripts, 'help.coffee'

user = robot.brain.userForId '1', {
name: 'dtaniwaki'
room: '#mocha'
Expand All @@ -42,6 +42,8 @@ describe 'alias', ->

afterEach ->
do robot.shutdown
do robot.server.close
process.removeAllListeners 'uncaughtException'

sharedExample = (done, src, dst)->
adapter.on "send", (envelope, strings)->
Expand Down

0 comments on commit ba89ff3

Please sign in to comment.