Skip to content

Commit

Permalink
[Celestica DX010] fix fan drawer and watchdog platform testcase issues (
Browse files Browse the repository at this point in the history
#13426)

Why I did it
fix DX010 fan drawer and watchdog platform test case issues

How I did it
1. Add fan_drawer get_maximum_consumed_power support
2. Adjust maximum watchdog timeout value check

How to verify it
Run test_fan_drawer and test_watchdog test cases.
  • Loading branch information
qnos authored and mssonicbld committed Feb 10, 2023
1 parent a6c64c9 commit 8a8c0b5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,13 @@ def is_replaceable(self):
bool: True if it is replaceable.
"""
return True

def get_maximum_consumed_power(self):
"""
Retrives the maximum power drawn by Fan Drawer
Returns:
A float, with value of the maximum consumable power of the
component.
"""
return 33.60
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def arm(self, seconds):
ret = WDT_COMMON_ERROR
if seconds < 0:
return ret
if seconds > 16779:
if seconds > 16777:
return ret


Expand Down

0 comments on commit 8a8c0b5

Please sign in to comment.