diff --git a/tests/core/test_scanspecs.py b/tests/core/test_scanspecs.py index c4e8257..4a8c8cc 100644 --- a/tests/core/test_scanspecs.py +++ b/tests/core/test_scanspecs.py @@ -56,3 +56,9 @@ def test_multiple_duration_frames(): AssertionError, match=re.escape("Zipping would overwrite axes ['DURATION']") ): spec.calculate() + spec = ( # TODO: refactor when https://github.com/dls-controls/scanspec/issues/90 + Static.duration(0.1) * Line.bounded(DURATION, 0, 0, 2) + ) + frames = spec.calculate() + assert len(frames) == 2 + assert get_constant_duration(frames) is None