From 92695e7fabdb2677edbf541a7d14c18e171dc1cb Mon Sep 17 00:00:00 2001 From: Antoine Catton <acatton@tiolive.com> Date: Thu, 11 Aug 2011 10:56:20 +0200 Subject: [PATCH] Adding mocking of time.sleep on promises tests --- slapos/tests/slapgrid.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/slapos/tests/slapgrid.py b/slapos/tests/slapgrid.py index e677c68a3..d935a1085 100644 --- a/slapos/tests/slapgrid.py +++ b/slapos/tests/slapgrid.py @@ -474,6 +474,7 @@ chmod 755 etc/run/wrapper return (404, {}, '') httplib.HTTPConnection._callback = server_response + self.fake_waiting_time = 0.2 self.error = False instance_path = self._create_instance('0') @@ -522,6 +523,7 @@ exit 127""") return (404, {}, '') httplib.HTTPConnection._callback = server_response + self.fake_waiting_time = 0.2 self.error = False instance_path = self._create_instance('0') -- 2.30.9