test_ad9910: relax tests

* tune_sync_delay: the opposite IO_UPDATE to SYNC_CLK alignment may not be perfectly
mis-aligned
* set_mu_speed: seems to be slower on the buildbot

Signed-off-by: Robert Jördens <rj@quartiq.de>
pull/1238/head
Robert Jördens 2019-01-09 17:27:42 +00:00
parent 19748fe495
commit 088530604e
1 changed files with 3 additions and 3 deletions

View File

@ -199,7 +199,7 @@ class AD9910Test(ExperimentCase):
self.execute(AD9910Exp, "set_speed_mu")
dt = self.dataset_mgr.get("dt")
print(dt)
self.assertLess(dt, 10*us)
self.assertLess(dt, 11*us)
def test_sync_window(self):
self.execute(AD9910Exp, "sync_window")
@ -220,8 +220,8 @@ class AD9910Test(ExperimentCase):
n = max(bins2)
# no edge at optimal delay
self.assertEqual(bins2[(dly + 1) & 3], 0)
# edge at expected position
self.assertEqual(bins2[(dly + 3) & 3], n)
# many edges near expected position
self.assertGreater(bins2[(dly + 3) & 3], n*.9)
def test_sw_readback(self):
self.execute(AD9910Exp, "sw_readback")