mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-25 23:49:37 -05:00
operator: make test more resilient (#1073)
This commit is contained in:
parent
6c068674af
commit
06b1e04e66
@ -307,8 +307,12 @@ var _ = Describe("NodeVersion controller", func() {
|
|||||||
}
|
}
|
||||||
return firstNode.Annotations
|
return firstNode.Annotations
|
||||||
}, timeout, interval).Should(HaveKeyWithValue(heirAnnotation, secondNodeName))
|
}, timeout, interval).Should(HaveKeyWithValue(heirAnnotation, secondNodeName))
|
||||||
Expect(k8sClient.Get(ctx, secondNodeLookupKey, secondNode)).Should(Succeed())
|
Eventually(func() map[string]string {
|
||||||
Expect(secondNode.Annotations).Should(HaveKeyWithValue(donorAnnotation, firstNodeName))
|
if err := k8sClient.Get(ctx, secondNodeLookupKey, secondNode); err != nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return secondNode.Annotations
|
||||||
|
}, timeout, interval).Should(HaveKeyWithValue(donorAnnotation, firstNodeName))
|
||||||
|
|
||||||
Eventually(func() error {
|
Eventually(func() error {
|
||||||
if err := k8sClient.Get(ctx, nodeVersionLookupKey, nodeVersion); err != nil {
|
if err := k8sClient.Get(ctx, nodeVersionLookupKey, nodeVersion); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user