From e47d8312d57b9fdf792bf4bcd7e1276484f1acfe Mon Sep 17 00:00:00 2001 From: sujinmkang Date: Thu, 18 Aug 2022 15:40:48 -0700 Subject: [PATCH] fix the wrong expected result comparision --- tests/determine-reboot-cause_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/determine-reboot-cause_test.py b/tests/determine-reboot-cause_test.py index 5dff482ef696..e495ef10b731 100644 --- a/tests/determine-reboot-cause_test.py +++ b/tests/determine-reboot-cause_test.py @@ -168,6 +168,6 @@ def test_determine_reboot_cause_software_hardware(self): with mock.patch("determine_reboot_cause.find_software_reboot_cause", return_value=EXPECTED_FIND_SOFTWARE_REBOOT_CAUSE_USER): with mock.patch("determine_reboot_cause.find_hardware_reboot_cause", return_value=EXPECTED_HARDWARE_REBOOT_CAUSE): previous_reboot_cause, additional_info = determine_reboot_cause.determine_reboot_cause() - assert previous_reboot_cause == REBOOT_CAUSE_WATCHDOG + assert previous_reboot_cause == EXPECTED_HARDWARE_REBOOT_CAUSE assert additional_info == EXPECTED_FIND_SOFTWARE_REBOOT_CAUSE_USER