test failure: test_data_iterator_event
https://gitlab.esrf.fr/bliss/bliss/-/jobs/50214
=================================== FAILURES ===================================
___________________________ test_data_iterator_event ___________________________
beacon = <bliss.config.static.Config object at 0x7f7c00edf4d0>
redis_data_conn = Redis<ConnectionPool<UnixDomainSocketConnection<path=/tmp/pytest-of-root/pytest-0/beacon0/test_configuration/redis.sock,db=1>>>
scan_tmpdir = local('/tmp/pytest-of-root/pytest-0/test_data_iterator_event0')
session = <bliss.common.session.Session object at 0x7f7b987e6c90>
def test_data_iterator_event(beacon, redis_data_conn, scan_tmpdir, session):
def iterate_channel_events(scan_db_name, channels):
for e, n in DataNodeIterator(get_node(scan_db_name)).walk_events():
if n.type == "channel":
channels[n.name] = n.get(0, -1)
scan_saving = session.env_dict["SCAN_SAVING"]
scan_saving.base_path = str(scan_tmpdir)
parent = scan_saving.get_parent_node()
m = getattr(setup_globals, "roby")
m.velocity = 5
diode = getattr(setup_globals, "diode")
npts = 5
chain = AcquisitionChain()
chain.add(
SoftwarePositionTriggerMaster(m, 0, 1, npts),
SamplingCounterAcquisitionDevice(diode, count_time=0.01, npoints=npts),
)
s = Scan(chain, "test_scan")
channels_data = dict()
iteration_greenlet = gevent.spawn(
iterate_channel_events, s.node.db_name, channels_data
)
s.run()
time.sleep(0.1)
iteration_greenlet.kill()
> assert set(("axis:roby", diode.fullname)) == set(channels_data.keys())
E AssertionError: assert {'axis:roby',...roller:diode'} == {'axis:roby', ...roller:diode'}
E Extra items in the right set:
E 'roby'
E Full diff:
E - {'axis:roby', 'simulation_diode_controller:diode'}
E + {'roby', 'axis:roby', 'simulation_diode_controller:diode'}
E ? ++++++++
tests/scans/test_publishing.py:188: AssertionError