From 20a5f095f8f33c40300011b1921b637aab1a3cfd Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 30 Oct 2017 23:06:38 +0800 Subject: [PATCH] test: use longer DMA sequence when playing it back repeatedly The CPU has to keep up. --- artiq/test/coredevice/test_rtio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/test/coredevice/test_rtio.py b/artiq/test/coredevice/test_rtio.py index c82327e90..6e7e50365 100644 --- a/artiq/test/coredevice/test_rtio.py +++ b/artiq/test/coredevice/test_rtio.py @@ -628,11 +628,11 @@ class DMATest(ExperimentCase): def test_dma_playback_time(self): exp = self.create(_DMA) count = 20000 - exp.record() + exp.record_many(40) exp.playback_many(count) dt = self.dataset_mgr.get("dma_playback_time") print("dt={}, dt/count={}".format(dt, dt/count)) - self.assertLess(dt/count, 3*us) + self.assertLess(dt/count, 4.5*us) def test_handle_invalidation(self): exp = self.create(_DMA)