Commit 12ebc5d5 authored by Jérome Perrin's avatar Jérome Perrin

XXX notes and hacks for faster tests

parent d367b41a
...@@ -37,7 +37,7 @@ from .temperature.heating import get_contribution_ratio ...@@ -37,7 +37,7 @@ from .temperature.heating import get_contribution_ratio
import six import six
MEASURE_INTERVAL = 5 MEASURE_INTERVAL = .01
class _Snapshot(object): class _Snapshot(object):
def get(self, property, default=None): def get(self, property, default=None):
......
...@@ -887,6 +887,7 @@ class TestSlapgridCPWithMasterWatchdog(MasterMixin, unittest.TestCase): ...@@ -887,6 +887,7 @@ class TestSlapgridCPWithMasterWatchdog(MasterMixin, unittest.TestCase):
watchdog_banged=self.watchdog_banged watchdog_banged=self.watchdog_banged
)) ))
os.chmod(watchdog_path, 0o755) os.chmod(watchdog_path, 0o755)
# TODO: undo patch
self.grid.watchdog_path = watchdog_path self.grid.watchdog_path = watchdog_path
slapos.grid.slapgrid.WATCHDOG_PATH = watchdog_path slapos.grid.slapgrid.WATCHDOG_PATH = watchdog_path
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment