From 88dbde0845c5b04ce30253617c48033c1efcf996 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com> Date: Mon, 29 Oct 2012 11:41:51 +0100 Subject: [PATCH] Pin DateTime to test correctly time. --- master/bt5/slapos_cloud/TestTemplateItem/testSlapOSSlapTool.py | 2 ++ master/bt5/slapos_cloud/bt/revision | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/master/bt5/slapos_cloud/TestTemplateItem/testSlapOSSlapTool.py b/master/bt5/slapos_cloud/TestTemplateItem/testSlapOSSlapTool.py index 35a8ff5dc..0040a6fb9 100644 --- a/master/bt5/slapos_cloud/TestTemplateItem/testSlapOSSlapTool.py +++ b/master/bt5/slapos_cloud/TestTemplateItem/testSlapOSSlapTool.py @@ -67,12 +67,14 @@ class TestSlapOSSlapToolMixin(testSlapOSMixin): self.tic() self.computer_id = self.computer.getReference() + self.pinDateTime(DateTime()) def _cleaupREQUEST(self): self.portal.REQUEST['request_instance'] = None self.portal.REQUEST.headers = {} def beforeTearDown(self): + self.unpinDateTime() self._cleaupREQUEST() def _makeComplexComputer(self): diff --git a/master/bt5/slapos_cloud/bt/revision b/master/bt5/slapos_cloud/bt/revision index b5db9c417..c2807f7f3 100644 --- a/master/bt5/slapos_cloud/bt/revision +++ b/master/bt5/slapos_cloud/bt/revision @@ -1 +1 @@ -139 \ No newline at end of file +140 \ No newline at end of file -- 2.30.9