Skip to content

Commit

Permalink
Remove flyer from pre-declare and simplify test
Browse files Browse the repository at this point in the history
  • Loading branch information
callumforrester committed Mar 25, 2024
1 parent 94469e2 commit ff62d2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/core/test_flyer.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from bluesky.protocols import Descriptor, StreamAsset
from bluesky.run_engine import RunEngine
from event_model import ComposeStreamResourceBundle, compose_stream_resource

from ophyd_async.core import (
DEFAULT_TIMEOUT,
DetectorControl,
Expand Down Expand Up @@ -174,7 +175,7 @@ def flying_plan():
detector.controller.disarm.assert_called_once # type: ignore

yield from bps.open_run()
yield from bps.declare_stream(flyer, detector, name="main_stream")
yield from bps.declare_stream(*detector_list, name="main_stream", collect=True)

yield from bps.kickoff(flyer)
for detector in detector_list:
Expand All @@ -199,9 +200,8 @@ def flying_plan():
done = True
yield from bps.collect(
*detector_list,
stream=True,
return_payload=False,
name="main_stream",
# name="main_stream",
)
yield from bps.sleep(0.01)
yield from bps.wait(group="complete")
Expand Down

0 comments on commit ff62d2c

Please sign in to comment.