Commit 0dd20e8d authored by Federico Vaga's avatar Federico Vaga

tst: add 1 second margin to acquisiton

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 3c6a8578
......@@ -101,7 +101,7 @@ class TestFmctdcAcquisition(object):
trans_b = stats_o[1]
fmcfd.generate_pulse(TDC_FD_CABLING[fmctdc_chan.idx], 1000,
period_ns, 0, False)
timeout = time.time() + (period_ns * count) / 1000000000.0
timeout = time.time() + 1 + (period_ns * count) / 1000000000.0
while pending > 0:
t = time.time()
if t >= timeout:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment