Limit worker pool to 10 threads (#3560)

* Limit worker pool to 10 threads

* Comment evdev in requirements

* Allow skipping RFXtrx tests locally

* Fix worker pool size tests

* lol whut
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2016-09-28 00:05:38 -07:00
1 parent a084232cf5
commit 4b8bc90d16
15 files changed
+41 -5

No files matched your search

+6 -2
View File
@@ -24,7 +24,9 @@ class TestUpdater(unittest.TestCase):
def test_logger_setup(self):
"""Use logger to create a logging filter."""
setup_component(MagicMock(), logger.DOMAIN, self.log_config)
hass = MagicMock()
hass.pool.worker_count = 2
setup_component(hass, logger.DOMAIN, self.log_config)
self.assertTrue(len(logging.root.handlers) > 0)
handler = logging.root.handlers[-1]
@@ -37,7 +39,9 @@ class TestUpdater(unittest.TestCase):
def test_logger_test_filters(self):
"""Test resulting filter operation."""
setup_component(MagicMock(), logger.DOMAIN, self.log_config)
hass = MagicMock()
hass.pool.worker_count = 2
setup_component(hass, logger.DOMAIN, self.log_config)
log_filter = logging.root.handlers[-1].filters[0]