mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-08 23:12:18 -04:00
operator: make test more resilient (#1073)
This commit is contained in:
parent
6c068674af
commit
06b1e04e66
1 changed files with 6 additions and 2 deletions
|
@ -307,8 +307,12 @@ var _ = Describe("NodeVersion controller", func() {
|
|||
}
|
||||
return firstNode.Annotations
|
||||
}, timeout, interval).Should(HaveKeyWithValue(heirAnnotation, secondNodeName))
|
||||
Expect(k8sClient.Get(ctx, secondNodeLookupKey, secondNode)).Should(Succeed())
|
||||
Expect(secondNode.Annotations).Should(HaveKeyWithValue(donorAnnotation, firstNodeName))
|
||||
Eventually(func() map[string]string {
|
||||
if err := k8sClient.Get(ctx, secondNodeLookupKey, secondNode); err != nil {
|
||||
return nil
|
||||
}
|
||||
return secondNode.Annotations
|
||||
}, timeout, interval).Should(HaveKeyWithValue(donorAnnotation, firstNodeName))
|
||||
|
||||
Eventually(func() error {
|
||||
if err := k8sClient.Get(ctx, nodeVersionLookupKey, nodeVersion); err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue