Fix: replace vmess grpc test image

This commit is contained in:
Dreamacro 2021-10-16 20:35:06 +08:00
parent df3a491d40
commit fea9d1c5e2

View file

@ -304,13 +304,13 @@ func TestClash_VmessWebsocketTLS(t *testing.T) {
func TestClash_VmessGrpc(t *testing.T) { func TestClash_VmessGrpc(t *testing.T) {
cfg := &container.Config{ cfg := &container.Config{
Image: ImageXray, Image: ImageVmess,
ExposedPorts: defaultExposedPorts, ExposedPorts: defaultExposedPorts,
} }
hostCfg := &container.HostConfig{ hostCfg := &container.HostConfig{
PortBindings: defaultPortBindings, PortBindings: defaultPortBindings,
Binds: []string{ Binds: []string{
fmt.Sprintf("%s:/etc/xray/config.json", C.Path.Resolve("vmess-grpc.json")), fmt.Sprintf("%s:/etc/v2ray/config.json", C.Path.Resolve("vmess-grpc.json")),
fmt.Sprintf("%s:/etc/ssl/v2ray/fullchain.pem", C.Path.Resolve("example.org.pem")), fmt.Sprintf("%s:/etc/ssl/v2ray/fullchain.pem", C.Path.Resolve("example.org.pem")),
fmt.Sprintf("%s:/etc/ssl/v2ray/privkey.pem", C.Path.Resolve("example.org-key.pem")), fmt.Sprintf("%s:/etc/ssl/v2ray/privkey.pem", C.Path.Resolve("example.org-key.pem")),
}, },