test_failure: test_multi_top_master
-
2021-06-21 re re ARG: https://gitlab.esrf.fr/bliss/bliss/-/jobs/222806
-
2021-05-18: re ARG !!! still present: https://gitlab.esrf.fr/bliss/bliss/-/jobs/212070
# Time is strange in CI. let's take a 20% margin...
> assert pytest.approx(val1, rel=0.2) == val2
E assert 76 ± 1.5e+01 == 58.0
E +76 ± 1.5e+01
E -58.0
tests/scans/test_continuous_soft_scan.py:138: AssertionError
- 2021-05-02: https://gitlab.esrf.fr/bliss/bliss/-/jobs/207229 Arg !!!
$ git grep test_multi_top_master
tests/scans/test_continuous_soft_scan.py:def test_multi_top_master(session, diode_acq_device_factory, diode):
tests/scans/test_scan_info.py:def test_multi_top_master(session, diode_acq_device_factory):
Failing one in this case is: tests/scans/test_continuous_soft_scan.py
____________________________ test_multi_top_master _____________________________
session = <bliss.common.session.Session object at 0x7f3b207008d0>
diode_acq_device_factory = <tests.scans.conftest.diode_acq_device_factory.<locals>.
SamplingCounterAcqDeviceFactory object at 0x7f3b102ba6d0>
diode = <tests.scans.conftest.CustomSimulationDiode object at 0x7f3b10f09b90>
def test_multi_top_master(session, diode_acq_device_factory, diode):
mot = session.config.get("m0")
start, stop, npoints, count_time = (0, 1, 20, 1)
chain = AcquisitionChain(parallel_prepare=True)
master = SoftwarePositionTriggerMaster(mot, start, stop, npoints, time=count_time)
count_time = (float(count_time) / npoints) / 2.0
if count_time < 0:
count_time = 0
timer = SoftwareTimerMaster(count_time, name="fast", npoints=npoints)
chain.add(master, timer)
acquisition_device, diode1 = diode_acq_device_factory.get(
count_time=count_time, npoints=npoints
)
diode2 = diode
chain.add(timer, acquisition_device)
scan_params = {"npoints": 0, "count_time": count_time * 2.0}
chain.append(DEFAULT_CHAIN.get(scan_params, (diode2,)))
scan = Scan(chain, name="multi_master", save=False)
scan.run()
> assert (
pytest.approx(len(diode2.store_values) - len(diode1.store_values), abs=5)
== len(diode2.store_values) / 2
)
E assert 59 ± 5.0e+00 == 49.5
E +59 ± 5.0e+00
E -49.5
tests/scans/test_continuous_soft_scan.py:131: AssertionError