Skip to content

Commit 3cf28a3

Browse files
committed
fix: r
Signed-off-by: Ashing Zheng <[email protected]>
1 parent c359c1e commit 3cf28a3

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

test/e2e/gatewayapi/tcproute.go

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -68,23 +68,14 @@ spec:
6868

6969
BeforeEach(func() {
7070
// Create GatewayProxy
71-
Expect(s.CreateResourceFromString(s.GetGatewayProxySpec())).
72-
NotTo(HaveOccurred(), "creating GatewayProxy")
71+
Expect(s.CreateResourceFromString(s.GetGatewayProxySpec())).NotTo(HaveOccurred(), "creating GatewayProxy")
7372

7473
// Create GatewayClass
75-
gatewayClassName := s.Namespace()
76-
Expect(s.CreateResourceFromString(s.GetGatewayClassYaml())).
77-
NotTo(HaveOccurred(), "creating GatewayClass")
78-
gcyaml, _ := s.GetResourceYaml("GatewayClass", gatewayClassName)
79-
s.ResourceApplied("GatewayClass", gatewayClassName, gcyaml, 1)
74+
Expect(s.CreateResourceFromString(s.GetGatewayClassYaml())).NotTo(HaveOccurred(), "creating GatewayClass")
8075

8176
// Create Gateway with TCP listener
82-
gatewayName := s.Namespace()
83-
Expect(s.CreateResourceFromString(fmt.Sprintf(tcpGateway, gatewayName, gatewayClassName))).
77+
Expect(s.CreateResourceFromString(fmt.Sprintf(tcpGateway, s.Namespace(), s.Namespace()))).
8478
NotTo(HaveOccurred(), "creating Gateway")
85-
86-
gwyaml, _ := s.GetResourceYaml("Gateway", gatewayName)
87-
s.ResourceApplied("Gateway", gatewayName, gwyaml, 1)
8879
})
8980

9081
It("should route TCP traffic to backend service", func() {

0 commit comments

Comments
 (0)