Fix tests.

This commit is contained in:
whitequark 2016-11-21 06:40:47 +00:00
parent 009d396740
commit 3485c83429

View File

@ -403,7 +403,7 @@ class CoredeviceTest(ExperimentCase):
self.execute(TimeKeepsRunning) self.execute(TimeKeepsRunning)
t2 = self.dataset_mgr.get("time_at_start") t2 = self.dataset_mgr.get("time_at_start")
dead_time = self.core.mu_to_seconds(t2 - t1, self.device_mgr.get("core")) dead_time = self.device_mgr.get("core").mu_to_seconds(t2 - t1)
print(dead_time) print(dead_time)
self.assertGreater(dead_time, 1*ms) self.assertGreater(dead_time, 1*ms)
self.assertLess(dead_time, 2500*ms) self.assertLess(dead_time, 2500*ms)