Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
fix e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
maksymvavilov committed Jan 4, 2024
1 parent 44451c9 commit 7759c24
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/e2e/gateway_single_spoke_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,8 @@ var _ = Describe("Gateway single target cluster", func() {
gw.Spec.Listeners = []gatewayapiv1.Listener{}
}
AddListener("wildcard", testHostnameWildcard, gatewayapiv1.ObjectName(testHostname), gw)
err = tconfig.HubClient().Update(ctx, gw)
patch := client.MergeFrom(gw.DeepCopy())
err = tconfig.HubClient().Patch(ctx, gw, patch)
Expect(err).ToNot(HaveOccurred())
Eventually(func(g Gomega, ctx SpecContext) {
checkGateway := &gatewayapiv1.Gateway{}
Expand Down Expand Up @@ -428,7 +429,8 @@ var _ = Describe("Gateway single target cluster", func() {
}
AddListener("other", testHostnameOther, gatewayapiv1.ObjectName(testHostnameOther), gw)
Eventually(func(g Gomega, ctx SpecContext) {
err = tconfig.HubClient().Update(ctx, gw)
patch := client.MergeFrom(gw.DeepCopy())
err = tconfig.HubClient().Patch(ctx, gw, patch)
Expect(err).ToNot(HaveOccurred())
checkGateway := &gatewayapiv1.Gateway{}
err = tconfig.HubClient().Get(ctx, client.ObjectKey{Name: testID, Namespace: tconfig.HubNamespace()}, checkGateway)
Expand All @@ -455,7 +457,8 @@ var _ = Describe("Gateway single target cluster", func() {
gw.Spec.Listeners = append(gw.Spec.Listeners[:i], gw.Spec.Listeners[i+1:]...)
}
}
err = tconfig.HubClient().Update(ctx, gw)
patch := client.MergeFrom(gw.DeepCopy())
err = tconfig.HubClient().Patch(ctx, gw, patch)
Expect(err).ToNot(HaveOccurred())
Eventually(func(g Gomega, ctx SpecContext) {
secret := &corev1.Secret{}
Expand Down

0 comments on commit 7759c24

Please sign in to comment.