Move worker pool monitoring to be time based instead of add_job based. (#3439)

* Move worker pool monitoring to be time based instead of add_job based.

* Stub out worker pool monitor during tests

* Add test for monitor worker pool.

* Improve naming

* Test stop_monitor coroutine

* Add async_create_timer test

* Finish rename create_timer
This commit is contained in:
Paulus Schoutsen 2016-09-19 23:39:49 -07:00 committed by GitHub
parent d31f6bc3f0
commit be68fe0d85
7 changed files with 167 additions and 79 deletions

View file

@ -69,7 +69,7 @@ def setUpModule(): # pylint: disable=invalid-name
{http.DOMAIN: {http.CONF_API_PASSWORD: API_PASSWORD,
http.CONF_SERVER_PORT: SLAVE_PORT}})
with patch.object(ha, 'create_timer', return_value=None):
with patch.object(ha, 'async_create_timer', return_value=None):
slave.start()