forked from k8snetworkplumbingwg/kubemacpool
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: wait for new managers to become available
In the current code, setRange and deleteLeaderManager functions are not waiting for the old pods to disappear and new ones to become available. Due to that, tests using this functions don't have any webhook available or worse, they are being served by the old one. This issue was not exposed due to Eventually we have around all the Create calls. This commit makes sure the old pods are removed but since the readiness probe proposed in k8snetworkplumbingwg#84 is not merged yet, a sleep is used here. Signed-off-by: Petr Horacek <[email protected]> Signed-off-by: Alona Kaplan <[email protected]>
- Loading branch information
1 parent
c4504ef
commit b792a2c
Showing
2 changed files
with
29 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