Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Add testing for fast grid scan without grid detect #752

Merged
merged 6 commits into from
Jun 29, 2023

Conversation

olliesilvester
Copy link
Contributor

@olliesilvester olliesilvester commented Jun 21, 2023

Fixes #686

Link to dodal PR (if required): DiamondLightSource/dodal#92

The unit test seems to work but takes a long time to complete for some reason

To test:

Confirm unit test is sensible

@codecov
Copy link

codecov bot commented Jun 21, 2023

Codecov Report

Merging #752 (bf1c3f1) into main (749f032) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #752   +/-   ##
=======================================
  Coverage   94.19%   94.19%           
=======================================
  Files          37       37           
  Lines        1808     1808           
=======================================
  Hits         1703     1703           
  Misses        105      105           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Collaborator

@DominicOram DominicOram left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good test but I think we should change it slightly as in comment

Comment on lines 396 to 404
RE(bps.stage(fake_fgs_composite.eiger))
fake_fgs_composite.eiger.arming_status.wait(60)
fake_fgs_composite.eiger._wait_fan_ready.assert_called_once()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Must: I think the test needs to assert that after the stage we're armed without needing to do a wait (to get it consistent we may need one of the mock sets to take some fraction of time)

@olliesilvester olliesilvester force-pushed the 686_fgs_arms_eiger_without_grid_detect branch from bc53f97 to 5a670b7 Compare June 28, 2023 13:09
@olliesilvester olliesilvester marked this pull request as ready for review June 28, 2023 13:21
Copy link
Collaborator

@DominicOram DominicOram left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thank you

@DominicOram DominicOram merged commit 01342c5 into main Jun 29, 2023
@DominicOram DominicOram deleted the 686_fgs_arms_eiger_without_grid_detect branch June 29, 2023 14:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fast grid scan without grid detect broken
2 participants