Skip to content

Commit 9cf2be3

Browse files
committed
fix e2e
Signed-off-by: bitliu <[email protected]>
1 parent 4eeec7e commit 9cf2be3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/e2e/tests/load_balancing.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,11 @@ var EndpointOverrideLoadBalancingTest = suite.ConformanceTest{
420420
t.Run("header-based endpoint override with valid pod IP should route to specific pod", func(t *testing.T) {
421421
// Use the first valid pod IP as override host
422422
targetPodIP := validPodIPs[0]
423-
overrideHost := fmt.Sprintf("%s:%d", targetPodIP, servicePort)
423+
format := "%s:%d"
424+
if IPFamily == "ipv6" {
425+
format = "[%s]:%d"
426+
}
427+
overrideHost := fmt.Sprintf(format, targetPodIP, servicePort)
424428

425429
// Get the expected pod name from our mapping
426430
expectPodName := podIPToName[targetPodIP]

0 commit comments

Comments
 (0)