Skip to content

Commit

Permalink
FIX: another case where I had accidently encoded a hardware dependecn…
Browse files Browse the repository at this point in the history
…y, will reword commit if right
  • Loading branch information
joshc-slac committed Aug 7, 2024
1 parent 60e56bc commit 113c68f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
9 changes: 6 additions & 3 deletions beams/tests/test_check_and_do.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ def thisjob(comp_condition, volatile_status, **kwargs) -> None:
candd = CheckAndDo.CheckAndDo("yuhh", check, action)
candd.setup_with_descendants()

for i in range(1, 10):
time.sleep(.01)
candd.tick_once()
while (
candd.status != py_trees.common.Status.SUCCESS
and candd.status != py_trees.common.Status.FAILURE
):
for i in candd.tick():
time.sleep(.01)

assert percentage_complete.value == 100
23 changes: 23 additions & 0 deletions docs/source/upcoming_release_notes/29-fix-test-worker.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
29 fix-test-worker
#################

API Breaks
----------
- N/A

Features
--------
- N/A

Bugfixes
--------
- test_worker was failing non deterministically due to logically ungated work functions
- test_check_and_do was failing non deterministically due to lack of closed loop ticking

Maintenance
-----------
- N/A

Contributors
------------
- joshc-slac

0 comments on commit 113c68f

Please sign in to comment.