diff --git a/pkg/controller/core.oam.dev/v1alpha2/application/application_controller_test.go b/pkg/controller/core.oam.dev/v1alpha2/application/application_controller_test.go index a96e1c01e..d17db296c 100644 --- a/pkg/controller/core.oam.dev/v1alpha2/application/application_controller_test.go +++ b/pkg/controller/core.oam.dev/v1alpha2/application/application_controller_test.go @@ -1098,7 +1098,7 @@ var _ = Describe("Test Application Controller", func() { }, }, "spec": map[string]interface{}{ - "clusterIP": "10.0.0.4", + "clusterIP": "10.0.0.64", "ports": []interface{}{ map[string]interface{}{ "port": 80, @@ -1154,7 +1154,7 @@ var _ = Describe("Test Application Controller", func() { { Type: "ingress", Healthy: true, - Message: "type: ClusterIP,\t clusterIP:10.0.0.4,\t ports:80,\t domainexample.com", + Message: "type: ClusterIP,\t clusterIP:10.0.0.64,\t ports:80,\t domainexample.com", }, }, }, diff --git a/test/e2e-test/definition_test.go b/test/e2e-test/definition_test.go index bbd55f86b..648c6340d 100644 --- a/test/e2e-test/definition_test.go +++ b/test/e2e-test/definition_test.go @@ -80,6 +80,10 @@ var _ = Describe("ComponentDefinition Normal tests", func() { } workDef.SetNamespace(namespace) Expect(k8sClient.Create(ctx, workDef)).Should(BeNil()) + getWd := new(v1beta1.WorkloadDefinition) + Eventually(func() error { + return k8sClient.Get(ctx, client.ObjectKey{Name: workDef.Name, Namespace: namespace}, getWd) + }, 15*time.Second, time.Second).Should(BeNil()) cd := webServiceWithNoTemplate.DeepCopy() cd.Spec.Workload.Definition = common.WorkloadGVK{}