Skip to content

Commit

Permalink
yellow flash timeout config
Browse files Browse the repository at this point in the history
  • Loading branch information
emiltin committed Dec 13, 2023
1 parent add0e48 commit 3ce83ab
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions config/dynniq_ec2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ timeouts:
shutdown: 180
startup_sequence: 60
functional_position: 30
yellow_flash: 60
components:
main:
KK+AG9998=001TC000:
Expand Down
1 change: 1 addition & 0 deletions config/gem_tlc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ timeouts:
startup_sequence: 5
functional_position: 2
priority_completion: 5
yellow_flash: 2
components:
main:
TC:
Expand Down
1 change: 1 addition & 0 deletions config/swarco_itc2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ timeouts:
shutdown: 180
startup_sequence: 180
functional_position: 240
yellow_flash: 60
components:
main:
KK+AG9998=001TC000:
Expand Down
1 change: 1 addition & 0 deletions config/swarco_itc3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ timeouts:
shutdown: 180
startup_sequence: 180
functional_position: 30
yellow_flash: 60
components:
main:
KK+AG9998=001TC000:
Expand Down
2 changes: 1 addition & 1 deletion spec/site/tlc/modes_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
specify 'yellow flash affects all signal groups', sxl: '>=1.0.7' do |example|
Validator::Site.connected do |task,supervisor,site|
prepare task, site
timeout = 10
timeout = Validator.config['timeouts']['yellow_flash']

switch_yellow_flash
wait_for_groups 'c', timeout: timeout # c mean s yellow flash
Expand Down
1 change: 0 additions & 1 deletion spec/support/status_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ def wait_for_status parent_task, description, status_list,
end

def wait_for_groups state, timeout:
timeout = 10
regex = /^#{state}+$/
wait_for_status(@task,
"Wait for all groups to go to yellow flash",
Expand Down

0 comments on commit 3ce83ab

Please sign in to comment.