Skip to content

Commit 7b85d22

Browse files
authored
fix: wasm oci image source e2e test failed when IP_FAMILY=ipv6 (#4623)
fixt wasm test” Signed-off-by: Huabing Zhao <[email protected]>
1 parent a011146 commit 7b85d22

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/e2e/tests/wasm_oci.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import (
1515
"errors"
1616
"fmt"
1717
"io"
18+
"net"
1819
"testing"
1920
"time"
2021

@@ -70,7 +71,7 @@ var OCIWasmTest = suite.ConformanceTest{
7071
if err != nil {
7172
t.Fatalf("failed to get registry IP: %v", err)
7273
}
73-
registryAddr := fmt.Sprintf("%s:5000", registryIP)
74+
registryAddr := net.JoinHostPort(registryIP, "5000")
7475

7576
// Push the wasm image to the registry
7677
digest := pushWasmImageForTest(t, suite, registryAddr)

0 commit comments

Comments
 (0)