Skip to content

Commit

Permalink
Wait for schedulable nodes
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Sluiter <[email protected]>
Signed-off-by: Artyom Lukianov <[email protected]>
  • Loading branch information
slintes authored and Artyom Lukianov committed Oct 6, 2019
1 parent 063a12a commit c9ea883
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,14 @@ func BeforeTestSuitSetup() {
DeployTestingInfrastructure()
}

// Wait for schedulable nodes
virtClient, err := kubecli.GetKubevirtClient()
PanicOnError(err)
Eventually(func() int {
nodes := GetAllSchedulableNodes(virtClient)
return len(nodes.Items)
}, 5*time.Minute, 10*time.Second).ShouldNot(BeZero(), "no schedulable nodes found")

CreateHostPathPv(osAlpineHostPath, HostPathAlpine)
CreateHostPathPVC(osAlpineHostPath, defaultDiskSize)

Expand Down

0 comments on commit c9ea883

Please sign in to comment.