-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid race between waitForStack* and reprocessing
Many of the tests wait for a particular value of `.status.lastUpdate.State`, then check the values of conditions are as expected. However, between these two things, they fetch the object from the API server again (`refetch`), since the waitForStack* uses a temporary variable rather than mutating the stack given to it. That that admits the possibility that the status might have been updated again, by the controller reconciling it again. Instead, let waitForStack* write to the object it's given, and don't `refetch` -- then, the status observed will be the status at the point the wait succeeded. Signed-off-by: Michael Bridgen <[email protected]>
- Loading branch information
Showing
2 changed files
with
6 additions
and
11 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
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