forked from M-Labs/artiq
1
0
Fork 0

test/coredevice/test_time_keeps_running: remove unnecessary close_devices, upper bound

This commit is contained in:
Sebastien Bourdeauducq 2015-07-07 15:48:47 +02:00
parent 706bf2b4b4
commit f3e5197c14
1 changed files with 4 additions and 4 deletions

View File

@ -222,12 +222,12 @@ class CoredeviceTest(ExperimentCase):
def test_time_keeps_running(self): def test_time_keeps_running(self):
self.execute(TimeKeepsRunning) self.execute(TimeKeepsRunning)
t1 = self.dbh.get_result("time_at_start").read t1 = self.dbh.get_result("time_at_start").read
self.dbh.close_devices() # a fortiori the core device connection
self.execute(TimeKeepsRunning) self.execute(TimeKeepsRunning)
t2 = self.dbh.get_result("time_at_start").read t2 = self.dbh.get_result("time_at_start").read
self.assertGreater(mu_to_seconds(t2 - t1, dead_time = mu_to_seconds(t2 - t1, self.dbh.get_device("core"))
self.dbh.get_device("core")), print(dead_time)
1*ms) self.assertGreater(dead_time, 1*ms)
self.assertLess(dead_time, 200*ms)
def test_handover(self): def test_handover(self):
self.execute(Handover) self.execute(Handover)