mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-12 16:09:39 -05:00
Fix autoscalingstrategy controller test
This commit is contained in:
parent
a29289c188
commit
1af3ffd46c
@ -128,9 +128,13 @@ var _ = Describe("AutoscalingStrategy controller", func() {
|
||||
}, timeout, interval).Should(Equal(int32(0)))
|
||||
|
||||
By("enabling the autoscaler in the strategy")
|
||||
Expect(k8sClient.Get(ctx, strategyLookupKey, strategy)).Should(Succeed())
|
||||
Eventually(func() error {
|
||||
if err := k8sClient.Get(ctx, strategyLookupKey, strategy); err != nil {
|
||||
return err
|
||||
}
|
||||
strategy.Spec.Enabled = true
|
||||
Expect(k8sClient.Update(ctx, strategy)).Should(Succeed())
|
||||
return k8sClient.Update(ctx, strategy)
|
||||
}, timeout, interval).Should(Succeed())
|
||||
|
||||
By("checking the autoscaling deployment eventually has one replica")
|
||||
Eventually(checkDeploymentReplicas, timeout, interval).Should(Equal(int32(1)))
|
||||
|
Loading…
Reference in New Issue
Block a user