Skip to content

Commit

Permalink
Fix scripting
Browse files Browse the repository at this point in the history
  • Loading branch information
jmthomas committed Jan 28, 2025
1 parent c0d3fe4 commit 66b3ac8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ def wait_for_action(id, state)
# Script is deleted, so it should NOT be in the running list
check_expression("#{script.nil?} == true")
list = completed_script_list()
# Script is deleted so it should NOT be in the completed list
# Script is deleted so it should be in the completed list
script = list.select {|script| script["id"] == id}[0]
check_expression("#{script.nil?} == true")
check_expression("#{script.nil?} == false")

script_lock(SCRIPT_NAME)
script_unlock(SCRIPT_NAME)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ def wait_for_action(id, state):
# Script is deleted, so it should NOT be in the running list
check_expression(f"{len(script)} == 0")
list = completed_script_list()
# Script is deleted so it should NOT be in the completed list
# Script is deleted so it should be in the completed list
script = [script for script in list if script["id"] == id]
check_expression(f"{len(script)} == 0")
check_expression(f"{len(script)} == 1")

script_lock(SCRIPT_NAME)
script_unlock(SCRIPT_NAME)
Expand Down

0 comments on commit 66b3ac8

Please sign in to comment.