This repository has been archived by the owner on Jan 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 302
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fleetctl: make use of waitForState also in assertUnitState()
waitForUnitState() has been making use of an additional sleep, in case assertUnitState() returned error. Now that a helper waitForState() is available for fleetctl, we don't need to sleep there. So remove the sleep calls, and instead make assertUnitState() a wrapper of waitForState() over fetchUnitState(). That way, assertUnitState() can periodically retry to get a unit, up to defaultSleepTime. This is also good for consistency in the entire code, as assertSystemdActiveState() already depends on waitForState().
- Loading branch information
Dongsu Park
committed
Nov 9, 2016
1 parent
57443ca
commit 9137746
Showing
1 changed file
with
34 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters