From 59d7f5f1e31b74b5c9e2fc7a2ad12b9155182266 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 8 Mar 2016 14:04:51 +0800 Subject: [PATCH] test/coredevice/time_keeps_running: start new session to prevent now_mu save/restore --- artiq/test/coredevice/test_rtio.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/artiq/test/coredevice/test_rtio.py b/artiq/test/coredevice/test_rtio.py index f68742885..d110965f3 100644 --- a/artiq/test/coredevice/test_rtio.py +++ b/artiq/test/coredevice/test_rtio.py @@ -234,8 +234,11 @@ class CoredeviceTest(ExperimentCase): 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)