Skip to content

Commit

Permalink
test/coredevice/time_keeps_running: start new session to prevent now_…
Browse files Browse the repository at this point in the history
…mu save/restore
sbourdeauducq committed Mar 8, 2016
1 parent 739568f commit 59d7f5f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions artiq/test/coredevice/test_rtio.py
Original file line number Diff line number Diff line change
@@ -234,8 +234,11 @@ def test_watchdog(self):
def test_time_keeps_running(self):
self.execute(TimeKeepsRunning)
t1 = self.dataset_mgr.get("time_at_start")

self.device_mgr.get("comm").close() # start a new session
self.execute(TimeKeepsRunning)
t2 = self.dataset_mgr.get("time_at_start")

dead_time = mu_to_seconds(t2 - t1, self.device_mgr.get("core"))
print(dead_time)
self.assertGreater(dead_time, 1*ms)

0 comments on commit 59d7f5f

Please sign in to comment.