diff --git a/test/clash_test.go b/test/clash_test.go index 4ade42f1..70c2e825 100644 --- a/test/clash_test.go +++ b/test/clash_test.go @@ -32,8 +32,8 @@ const ( ImageTrojan = "trojangfw/trojan:latest" ImageNaive = "pocat/naiveproxy:client" ImageBoringTun = "ghcr.io/ntkme/boringtun:edge" - ImageHysteria = "teddysun/hysteria:1.3.5" - ImageHysteria2 = "teddysun/hysteria:latest" + ImageHysteria = "tobyxdd/hysteria:v1.3.5" + ImageHysteria2 = "tobyxdd/hysteria:v2" ImageNginx = "nginx:stable" ImageShadowTLS = "ghcr.io/ihciah/shadow-tls:latest" ImageShadowsocksR = "teddysun/shadowsocks-r:latest" @@ -378,7 +378,7 @@ func testLargeDataWithPacketConnSize(t *testing.T, port uint16, chunkSize int, p rAddr := &net.UDPAddr{IP: localIP.AsSlice(), Port: int(port)} - times := 2 + times := 50 pingCh, pongCh, test := newLargeDataPair() writeRandData := func(pc net.PacketConn, addr net.Addr) (map[int][]byte, error) { diff --git a/test/ech_test.go b/test/ech_test.go index c533c5b8..85e4a433 100644 --- a/test/ech_test.go +++ b/test/ech_test.go @@ -244,5 +244,5 @@ func TestECHHysteria2(t *testing.T) { }, }, }) - testSuit(t, clientPort, testPort) + testSuitLargeUDP(t, clientPort, testPort) } diff --git a/test/hysteria2_test.go b/test/hysteria2_test.go index 06284d1e..020f1474 100644 --- a/test/hysteria2_test.go +++ b/test/hysteria2_test.go @@ -127,7 +127,7 @@ func TestHysteria2Inbound(t *testing.T) { startDockerContainer(t, DockerOptions{ Image: ImageHysteria2, Ports: []uint16{serverPort, clientPort}, - Cmd: []string{"hysteria", "client", "-c", "/etc/hysteria/config.yml", "--disable-update-check", "--log-level", "debug"}, + Cmd: []string{"client", "-c", "/etc/hysteria/config.yml", "--disable-update-check", "--log-level", "debug"}, Bind: map[string]string{ "hysteria2-client.yml": "/etc/hysteria/config.yml", caPem: "/etc/hysteria/ca.pem", @@ -141,7 +141,7 @@ func TestHysteria2Outbound(t *testing.T) { startDockerContainer(t, DockerOptions{ Image: ImageHysteria2, Ports: []uint16{testPort}, - Cmd: []string{"hysteria", "server", "-c", "/etc/hysteria/config.yml", "--disable-update-check", "--log-level", "debug"}, + Cmd: []string{"server", "-c", "/etc/hysteria/config.yml", "--disable-update-check", "--log-level", "debug"}, Bind: map[string]string{ "hysteria2-server.yml": "/etc/hysteria/config.yml", certPem: "/etc/hysteria/cert.pem",