Skip to content

Commit

Permalink
do a better job of cleaning up after master tests
Browse files Browse the repository at this point in the history
  • Loading branch information
djmitche committed Nov 5, 2012
1 parent ff1d433 commit 86eeb4c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions master/buildbot/test/integration/test_master.py
Expand Up @@ -31,6 +31,9 @@ def setUp(self):
'from buildbot.test.integration.test_master \\\n'
'import BuildmasterConfig\n')

def tearDown(self):
return self.tearDownDirs()

@defer.inlineCallbacks
def do_test_master(self):
# create the master and set its config
Expand All @@ -51,6 +54,10 @@ def do_test_master(self):

# stop the service
yield m.stopService()

# and shutdown the db threadpool, as is normally done at reactor stop
m.db.pool.shutdown()

# (trial will verify all reactor-based timers have been cleared, etc.)

# run this test twice, to make sure the first time shut everything down
Expand Down

0 comments on commit 86eeb4c

Please sign in to comment.