Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: odubajDT <[email protected]>
  • Loading branch information
odubajDT committed Mar 7, 2023
1 parent 3930280 commit 3cf1d65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions operator/test/component/taskdefinitioncontroller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ var _ = Describe("KeptnTaskDefinitionController", Ordered, func() {
Spec: klcv1alpha3.KeptnTaskDefinitionSpec{
Function: klcv1alpha3.FunctionSpec{
ConfigMapReference: klcv1alpha3.ConfigMapReference{
Name: "my-configmap",
Name: "my-configmap-non-existing",
},
},
},
Expand All @@ -177,7 +177,7 @@ var _ = Describe("KeptnTaskDefinitionController", Ordered, func() {
Eventually(func(g Gomega) {
err := k8sClient.Get(context.TODO(), types.NamespacedName{
Namespace: namespace,
Name: "my-configmap",
Name: "my-configmap-non-existing",
}, configmap)
g.Expect(err).NotTo(BeNil())
}, "30s").Should(Succeed())
Expand All @@ -191,7 +191,7 @@ var _ = Describe("KeptnTaskDefinitionController", Ordered, func() {
Name: taskDefinition.Name,
}, taskDefinition2)
g.Expect(err).To(BeNil())
g.Expect(taskDefinition2.Status.Function.ConfigMap).To(Equal(""))
g.Expect(taskDefinition2.Status.Function.ConfigMap).NotTo(Equal(configmap.Name))

}, "30s").Should(Succeed())

Expand Down

0 comments on commit 3cf1d65

Please sign in to comment.