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. Co-authored-by: Ikki Zhu <79439153+qnos@users.noreply.github.com>
This commit is contained in:
parent
5e52b92d0a
commit
268e866c02
@ -106,3 +106,13 @@ class FanDrawer(FanDrawerBase):
|
|||||||
bool: True if it is replaceable.
|
bool: True if it is replaceable.
|
||||||
"""
|
"""
|
||||||
return True
|
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
|
||||||
|
@ -135,7 +135,7 @@ class Watchdog(WatchdogBase):
|
|||||||
ret = WDT_COMMON_ERROR
|
ret = WDT_COMMON_ERROR
|
||||||
if seconds < 0:
|
if seconds < 0:
|
||||||
return ret
|
return ret
|
||||||
if seconds > 16779:
|
if seconds > 16777:
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user