Skip to content
Snippets Groups Projects
Commit ffb78158 authored by Matias Guijarro's avatar Matias Guijarro
Browse files

Merge branch '2741-test_failure-test_multi_top_master' into 'master'

Resolve "test_failure: test_multi_top_master"

Closes #2741

See merge request bliss/bliss!3678
parents e0f4ad4d a4de8a5a
No related branches found
No related tags found
No related merge requests found
......@@ -128,10 +128,13 @@ def test_multi_top_master(session, diode_acq_device_factory, diode):
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
)
# Check that there are twice more stored values for diode2 than for diode1.
val1 = len(diode2.store_values) - len(diode1.store_values)
val2 = len(diode2.store_values) / 2
# Time is strange in CI. let's take a 20% margin...
assert pytest.approx(val1, rel=0.2) == val2
def test_interrupted_scan(session, diode_acq_device_factory):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment