Skip to content

Commit

Permalink
Update test_shutdownmanager.py
Browse files Browse the repository at this point in the history
Add callback to the shutdown tests
  • Loading branch information
mcw-work authored Nov 22, 2023
1 parent cbda93b commit 07b8cde
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions landscape/client/manager/tests/test_shutdownmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def check(_):
bus_object.get_object.assert_called_once()
bus_object.Reboot.assert_called_once()

deferred.addCallback(check)
return deferred

def test_shutdown(self):
Expand All @@ -52,4 +53,5 @@ def check(_):
bus_object.get_object.assert_called_once()
bus_object.PowerOff.assert_called_once()

deferred.addCallback(check)
return deferred

0 comments on commit 07b8cde

Please sign in to comment.