From f3e5197c14a6c3349c73b7e1928ee1e809d1cc01 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 7 Jul 2015 15:48:47 +0200 Subject: [PATCH] test/coredevice/test_time_keeps_running: remove unnecessary close_devices, upper bound --- artiq/test/coredevice.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/artiq/test/coredevice.py b/artiq/test/coredevice.py index 0c5c32990..0d6aa8ee0 100644 --- a/artiq/test/coredevice.py +++ b/artiq/test/coredevice.py @@ -222,12 +222,12 @@ class CoredeviceTest(ExperimentCase): def test_time_keeps_running(self): self.execute(TimeKeepsRunning) t1 = self.dbh.get_result("time_at_start").read - self.dbh.close_devices() # a fortiori the core device connection self.execute(TimeKeepsRunning) t2 = self.dbh.get_result("time_at_start").read - self.assertGreater(mu_to_seconds(t2 - t1, - self.dbh.get_device("core")), - 1*ms) + dead_time = mu_to_seconds(t2 - t1, self.dbh.get_device("core")) + print(dead_time) + self.assertGreater(dead_time, 1*ms) + self.assertLess(dead_time, 200*ms) def test_handover(self): self.execute(Handover)