diff --git a/test/ss_test.go b/test/ss_test.go index caac9033..7cba7efd 100644 --- a/test/ss_test.go +++ b/test/ss_test.go @@ -174,7 +174,7 @@ func TestClash_ShadowsocksV2RayPlugin(t *testing.T) { func Benchmark_Shadowsocks(b *testing.B) { cfg := &container.Config{ Image: ImageShadowsocks, - Env: []string{"SS_MODULE=ss-server", "SS_CONFIG=-s 0.0.0.0 -u -v -p 10002 -m chacha20-ietf-poly1305 -k FzcLbKs2dY9mhL"}, + Env: []string{"SS_MODULE=ss-server", "SS_CONFIG=-s 0.0.0.0 -u -v -p 10002 -m aes-256-gcm -k FzcLbKs2dY9mhL"}, ExposedPorts: defaultExposedPorts, } hostCfg := &container.HostConfig{ @@ -195,7 +195,7 @@ func Benchmark_Shadowsocks(b *testing.B) { Server: localIP.String(), Port: 10002, Password: "FzcLbKs2dY9mhL", - Cipher: "chacha20-ietf-poly1305", + Cipher: "aes-256-gcm", UDP: true, }) if err != nil { diff --git a/test/vmess_test.go b/test/vmess_test.go index bdc5ad9e..de3b2ba6 100644 --- a/test/vmess_test.go +++ b/test/vmess_test.go @@ -347,7 +347,7 @@ func TestClash_VmessGrpc(t *testing.T) { } func Benchmark_Vmess(b *testing.B) { - configPath := C.Path.Resolve("vmess.json") + configPath := C.Path.Resolve("vmess-aead.json") cfg := &container.Config{ Image: ImageVmess, @@ -358,7 +358,7 @@ func Benchmark_Vmess(b *testing.B) { Binds: []string{fmt.Sprintf("%s:/etc/v2ray/config.json", configPath)}, } - id, err := startContainer(cfg, hostCfg, "vmess") + id, err := startContainer(cfg, hostCfg, "vmess-aead") if err != nil { assert.FailNow(b, err.Error()) } @@ -373,7 +373,7 @@ func Benchmark_Vmess(b *testing.B) { Port: 10002, UUID: "b831381d-6324-4d53-ad4f-8cda48b30811", Cipher: "auto", - AlterID: 32, + AlterID: 0, UDP: true, }) if err != nil {