Skip to content

Commit f3e5197

Browse files
committedJul 7, 2015
test/coredevice/test_time_keeps_running: remove unnecessary close_devices, upper bound
1 parent 706bf2b commit f3e5197

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

Diff for: ‎artiq/test/coredevice.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -222,12 +222,12 @@ def test_watchdog(self):
222222
def test_time_keeps_running(self):
223223
self.execute(TimeKeepsRunning)
224224
t1 = self.dbh.get_result("time_at_start").read
225-
self.dbh.close_devices() # a fortiori the core device connection
226225
self.execute(TimeKeepsRunning)
227226
t2 = self.dbh.get_result("time_at_start").read
228-
self.assertGreater(mu_to_seconds(t2 - t1,
229-
self.dbh.get_device("core")),
230-
1*ms)
227+
dead_time = mu_to_seconds(t2 - t1, self.dbh.get_device("core"))
228+
print(dead_time)
229+
self.assertGreater(dead_time, 1*ms)
230+
self.assertLess(dead_time, 200*ms)
231231

232232
def test_handover(self):
233233
self.execute(Handover)

0 commit comments

Comments
 (0)
Please sign in to comment.