Skip to content

Commit

Permalink
fix the wrong expected result comparision
Browse files Browse the repository at this point in the history
  • Loading branch information
sujinmkang committed Aug 18, 2022
1 parent ef86b53 commit e47d831
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/determine-reboot-cause_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e47d831

Please sign in to comment.