Skip to content

Commit

Permalink
test/coredevice/test_time_keeps_running: remove unnecessary close_dev…
Browse files Browse the repository at this point in the history
…ices, upper bound
sbourdeauducq committed Jul 7, 2015
1 parent 706bf2b commit f3e5197
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions artiq/test/coredevice.py
Original file line number Diff line number Diff line change
@@ -222,12 +222,12 @@ def test_watchdog(self):
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)

0 comments on commit f3e5197

Please sign in to comment.