mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04: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
@ -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…
Reference in New Issue
Block a user