mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-02-02 10:35:08 -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)))
|
Eventually(checkDeploymentReplicas, timeout, interval).Should(Equal(int32(1)))
|
||||||
|
|
||||||
By("checking the autoscaling strategy status shows one replica")
|
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) {
|
Consistently(func() (int32, error) {
|
||||||
err := k8sClient.Get(ctx, strategyLookupKey, createdStrategy)
|
err := k8sClient.Get(ctx, strategyLookupKey, createdStrategy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user