Skip to content

Commit d82a996

Browse files
committed
fix: r
Signed-off-by: Ashing Zheng <[email protected]>
1 parent 960e81e commit d82a996

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/e2e/crds/v2/status.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ var _ = Describe("Test apisix.apache.org/v2 Status", Label("apisix.apache.org",
3939
var (
4040
s = scaffold.NewScaffold(&scaffold.Options{
4141
ControllerName: "apisix.apache.org/apisix-ingress-controller",
42+
// for triggering the sync
43+
SyncPeriod: 3 * time.Second,
4244
})
4345
applier = framework.NewApplier(s.GinkgoT, s.K8sClient, s.CreateResourceFromString)
4446
)
@@ -200,8 +202,6 @@ spec:
200202
),
201203
)
202204

203-
time.Sleep(60 * time.Second)
204-
205205
By("update service to original spec")
206206
serviceYaml, err = s.GetOutputFromString("svc", framework.ProviderType, "-o", "yaml")
207207
Expect(err).NotTo(HaveOccurred(), "getting service yaml")

test/e2e/gatewayapi/status.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ var _ = Describe("Test Gateway API Status", Label("networking.k8s.io", "httprout
3636
var (
3737
s = scaffold.NewScaffold(&scaffold.Options{
3838
ControllerName: "apisix.apache.org/apisix-ingress-controller",
39+
// for triggering the sync
40+
SyncPeriod: 3 * time.Second,
3941
})
4042
)
4143
Context("Test HTTPRoute Sync Status", func() {
@@ -156,8 +158,6 @@ spec:
156158
),
157159
)
158160

159-
time.Sleep(60 * time.Second)
160-
161161
By("update service to original spec")
162162
serviceYaml, err = s.GetOutputFromString("svc", framework.ProviderType, "-o", "yaml")
163163
Expect(err).NotTo(HaveOccurred(), "getting service yaml")

0 commit comments

Comments
 (0)