mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-12-18 09:22:29 -05:00
[node-operator] nodeimage-controller: improve test robustness
Signed-off-by: Malte Poll <mp@edgeless.systems>
This commit is contained in:
parent
aee432ed6f
commit
23dfc5549b
1 changed files with 4 additions and 1 deletions
|
|
@ -174,7 +174,10 @@ var _ = Describe("NodeImage controller", func() {
|
||||||
Eventually(func() error {
|
Eventually(func() error {
|
||||||
return k8sClient.Get(ctx, joiningPendingNodeLookupKey, pendingNode)
|
return k8sClient.Get(ctx, joiningPendingNodeLookupKey, pendingNode)
|
||||||
}).Should(Succeed())
|
}).Should(Succeed())
|
||||||
Expect(pendingNode.Status.CSPNodeState).Should(Equal(updatev1alpha1.NodeStateReady))
|
Eventually(func() updatev1alpha1.CSPNodeState {
|
||||||
|
k8sClient.Get(ctx, joiningPendingNodeLookupKey, pendingNode)
|
||||||
|
return pendingNode.Status.CSPNodeState
|
||||||
|
}).Should(Equal(updatev1alpha1.NodeStateReady))
|
||||||
Eventually(func() int {
|
Eventually(func() int {
|
||||||
if err := k8sClient.Get(ctx, nodeImageLookupKey, nodeImage); err != nil {
|
if err := k8sClient.Get(ctx, nodeImageLookupKey, nodeImage); err != nil {
|
||||||
return 0
|
return 0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue