forked from M-Labs/artiq
1
0
Fork 0

rtio/sed: disable wait in TestLaneDistributor.test_regular

This commit is contained in:
Sebastien Bourdeauducq 2017-09-26 16:10:52 +08:00
parent 4112e403de
commit f079ac6af6
1 changed files with 1 additions and 2 deletions

View File

@ -75,9 +75,8 @@ def simulate(input_events, wait=True):
class TestLaneDistributor(unittest.TestCase): class TestLaneDistributor(unittest.TestCase):
def test_regular(self): def test_regular(self):
# Assumes lane 0 does not have wait time.
N = 16 N = 16
output, access_results = simulate([(42+n, (n+1)*8) for n in range(N)]) output, access_results = simulate([(42+n, (n+1)*8) for n in range(N)], wait=False)
self.assertEqual(output, [(0, n, 42+n, (n+1)*8) for n in range(N)]) self.assertEqual(output, [(0, n, 42+n, (n+1)*8) for n in range(N)])
self.assertEqual(access_results, [("ok", 0)]*N) self.assertEqual(access_results, [("ok", 0)]*N)