Skip to content

Commit

Permalink
Increase post-PDU state change delay to allow all PSUs to react (soni…
Browse files Browse the repository at this point in the history
…c-net#13793)

* Increase post-PDU state change delay to allow all PSUs to react

* Revert delay increase for 'turn_all_outlets_on'
  • Loading branch information
spilkey-cisco authored Jul 26, 2024
1 parent 1dc9fab commit 51db6bb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/platform_tests/test_platform_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
CMD_PLATFORM_FANSTATUS = "show platform fan"
CMD_PLATFORM_TEMPER = "show platform temperature"

PDU_WAIT_TIME = 20

THERMAL_CONTROL_TEST_WAIT_TIME = 65
THERMAL_CONTROL_TEST_CHECK_INTERVAL = 5

Expand Down Expand Up @@ -296,7 +298,7 @@ def test_turn_on_off_psu_and_check_psustatus(duthosts,

logging.info("Turn off outlet {}".format(outlet))
pdu_ctrl.turn_off_outlet(outlet)
time.sleep(10)
time.sleep(PDU_WAIT_TIME)

cli_psu_status = duthost.command(CMD_PLATFORM_PSUSTATUS)
for line in cli_psu_status["stdout_lines"][2:]:
Expand All @@ -310,7 +312,7 @@ def test_turn_on_off_psu_and_check_psustatus(duthosts,

logging.info("Turn on outlet {}".format(outlet))
pdu_ctrl.turn_on_outlet(outlet)
time.sleep(10)
time.sleep(PDU_WAIT_TIME)

cli_psu_status = duthost.command(CMD_PLATFORM_PSUSTATUS)
for line in cli_psu_status["stdout_lines"][2:]:
Expand Down

0 comments on commit 51db6bb

Please sign in to comment.