mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-23 13:51:06 -05:00
[node-operator] autoscalingstrategy-controller: improve test robustness (#372)
This commit is contained in:
parent
4176f038df
commit
f050a301d0
@ -129,6 +129,13 @@ var _ = Describe("AutoscalingStrategy controller", func() {
|
||||
Eventually(checkDeploymentReplicas, timeout, interval).Should(Equal(int32(1)))
|
||||
|
||||
By("checking the autoscaling strategy status shows one replica")
|
||||
Eventually(func() (int32, error) {
|
||||
err := k8sClient.Get(ctx, strategyLookupKey, createdStrategy)
|
||||
if err != nil {
|
||||
return -1, err
|
||||
}
|
||||
return createdStrategy.Status.Replicas, nil
|
||||
}, duration, interval).Should(Equal(int32(1)))
|
||||
Consistently(func() (int32, error) {
|
||||
err := k8sClient.Get(ctx, strategyLookupKey, createdStrategy)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user