Skip to content

Commit

Permalink
Wait for test config map to be created
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriziopandini committed Jan 18, 2021
1 parent 4ae0733 commit c69f3e8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions exp/addons/controllers/clusterresourceset_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,15 @@ metadata:
Data: map[string]string{},
}
Expect(testEnv.Create(ctx, testConfigmap)).To(Succeed())
cmKey := client.ObjectKey{
Namespace: defaultNamespaceName,
Name: newCMName,
}
Eventually(func() bool {
m := &corev1.ConfigMap{}
err := testEnv.Get(ctx, cmKey, m)
return err == nil
}, timeout).Should(BeTrue())

// When the ConfigMap resource is created, CRS should get reconciled immediately.
Eventually(func() bool {
Expand Down

0 comments on commit c69f3e8

Please sign in to comment.