Skip to content

Commit

Permalink
test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tardyp committed Jul 25, 2016
1 parent 96c3335 commit 717d23f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
5 changes: 2 additions & 3 deletions master/buildbot/test/unit/test_schedulers_manager.py
Expand Up @@ -120,10 +120,9 @@ def test_reconfigService_add_and_change_and_remove(self):

self.new_config.schedulers = {}

self.assertEqual(sch1.running, True)
yield self.sm.reconfigServiceWithBuildbotConfig(self.new_config)

self.assertIdentical(sch1.parent, None)
self.assertIdentical(sch1.master, None)
self.assertEqual(sch1.running, False)

@defer.inlineCallbacks
def test_reconfigService_class_name_change(self):
Expand Down
4 changes: 2 additions & 2 deletions master/buildbot/test/unit/test_worker_manager.py
Expand Up @@ -75,10 +75,10 @@ def test_reconfigServiceWorkers_add_remove(self):

self.new_config.workers = []

self.assertEqual(worker.running, True)
yield self.workers.reconfigServiceWithBuildbotConfig(self.new_config)

self.assertIdentical(worker.parent, None)
self.assertIdentical(worker.master, None)
self.assertEqual(worker.running, False)

@defer.inlineCallbacks
def test_reconfigServiceWorkers_reconfig(self):
Expand Down
2 changes: 2 additions & 0 deletions master/buildbot/util/service.py
Expand Up @@ -400,6 +400,8 @@ def reconfigServiceWithBuildbotConfig(self, new_config):
# (this is related to the fact that self.master is found by recursively looking at self.parent
# for a master)
yield child.stopService()
# it has already called, so do not call it again
child.stopService = lambda: None
yield child.disownServiceParent()
# HACK: we still keep a reference to the master for some cleanup tasks which are not waited by
# to stopService (like the complex worker disconnection mechanism)
Expand Down
2 changes: 2 additions & 0 deletions master/docs/relnotes/index.rst
Expand Up @@ -26,6 +26,8 @@ Master
Hyper_ is a CaaS solution for hosting docker container in the cloud, billed to the second.
It forms a very cost efficient solution to run your CI in the cloud.

.. _Hyper: https://hyper.sh

Features
~~~~~~~~

Expand Down

0 comments on commit 717d23f

Please sign in to comment.