[module/{load|cpu}] Use the thresholds from the parameters

This commit is contained in:
Frederic Junod 2017-07-08 07:42:14 +02:00
parent b22356d52b
commit 6dcd9e6cab
3 changed files with 9 additions and 3 deletions

View file

@ -51,7 +51,7 @@ class TestLoadModule(unittest.TestCase):
def test_assume_single_core(self):
self.mp.cpu_count.side_effect = NotImplementedError
module = Module(engine=self.engine, config={"config": mock.Mock() })
module = Module(engine=self.engine, config={"config": {} })
self.assertEquals(1, module._cpus)
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4