fix lint
Signed-off-by: Howard Lau <howardlau1999@hotmail.com>
This commit is contained in:
parent
08430619b9
commit
152049b5cf
@ -23,8 +23,7 @@ var _ = Describe("Seaweed Controller", func() {
|
|||||||
namespace = "default"
|
namespace = "default"
|
||||||
name = "test-seaweed"
|
name = "test-seaweed"
|
||||||
|
|
||||||
timeout = time.Second * 10
|
timeout = time.Second * 30
|
||||||
duration = time.Second * 10
|
|
||||||
interval = time.Millisecond * 250
|
interval = time.Millisecond * 250
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -67,18 +66,21 @@ var _ = Describe("Seaweed Controller", func() {
|
|||||||
err := k8sClient.Get(ctx, masterKey, masterSts)
|
err := k8sClient.Get(ctx, masterKey, masterSts)
|
||||||
return err != nil
|
return err != nil
|
||||||
}, timeout, interval).Should(BeTrue())
|
}, timeout, interval).Should(BeTrue())
|
||||||
|
Expect(masterSts.Spec.Replicas).ShouldNot(BeNil())
|
||||||
Expect(*masterSts.Spec.Replicas).Should(Equal(seaweed.Spec.Master.Replicas))
|
Expect(*masterSts.Spec.Replicas).Should(Equal(seaweed.Spec.Master.Replicas))
|
||||||
|
|
||||||
Eventually(func() bool {
|
Eventually(func() bool {
|
||||||
err := k8sClient.Get(ctx, volumeKey, volumeSts)
|
err := k8sClient.Get(ctx, volumeKey, volumeSts)
|
||||||
return err != nil
|
return err != nil
|
||||||
}, timeout, interval).Should(BeTrue())
|
}, timeout, interval).Should(BeTrue())
|
||||||
|
Expect(volumeSts.Spec.Replicas).ShouldNot(BeNil())
|
||||||
Expect(*volumeSts.Spec.Replicas).Should(Equal(seaweed.Spec.Volume.Replicas))
|
Expect(*volumeSts.Spec.Replicas).Should(Equal(seaweed.Spec.Volume.Replicas))
|
||||||
|
|
||||||
Eventually(func() bool {
|
Eventually(func() bool {
|
||||||
err := k8sClient.Get(ctx, filerKey, filerSts)
|
err := k8sClient.Get(ctx, filerKey, filerSts)
|
||||||
return err != nil
|
return err != nil
|
||||||
}, timeout, interval).Should(BeTrue())
|
}, timeout, interval).Should(BeTrue())
|
||||||
|
Expect(filerSts.Spec.Replicas).ShouldNot(BeNil())
|
||||||
Expect(*filerSts.Spec.Replicas).Should(Equal(seaweed.Spec.Filer.Replicas))
|
Expect(*filerSts.Spec.Replicas).Should(Equal(seaweed.Spec.Filer.Replicas))
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user