Skip to content

Commit ef9eb35

Browse files
Pass arguments to thermalctld.ThermalControlDaemon (#700)
1 parent 959761c commit ef9eb35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sonic-thermalctld/tests/test_thermalctld.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ def test_get_chassis_exception(self):
813813

814814
# ThermalControlDaemon should raise SystemExit with CHASSIS_GET_ERROR code when chassis initialization fails
815815
with pytest.raises(SystemExit) as exc_info:
816-
daemon_thermalctld = thermalctld.ThermalControlDaemon()
816+
daemon_thermalctld = thermalctld.ThermalControlDaemon(5, 60, 30)
817817

818818
# Verify it exits with the correct error code
819819
assert exc_info.value.code == thermalctld.CHASSIS_GET_ERROR
@@ -836,7 +836,7 @@ def test_get_chassis_success(self):
836836
mock_platform_instance.get_chassis.return_value = mock_chassis
837837
mock_platform_class.return_value = mock_platform_instance
838838

839-
daemon_thermalctld = thermalctld.ThermalControlDaemon()
839+
daemon_thermalctld = thermalctld.ThermalControlDaemon(5, 60, 30)
840840

841841
# Verify chassis was set correctly
842842
assert daemon_thermalctld.chassis is mock_chassis

0 commit comments

Comments
 (0)