mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-11-23 12:02:58 -05:00
@@ -61,7 +61,7 @@ func TestV2RayDial(t *testing.T) {
|
||||
cfgBytes, err := proto.Marshal(config)
|
||||
common.Must(err)
|
||||
|
||||
server, err := core.StartInstance("protobuf", cfgBytes)
|
||||
server, err := core.StartInstance(core.FormatProtobuf, cfgBytes)
|
||||
common.Must(err)
|
||||
defer server.Close()
|
||||
|
||||
@@ -111,7 +111,7 @@ func TestV2RayDialUDPConn(t *testing.T) {
|
||||
cfgBytes, err := proto.Marshal(config)
|
||||
common.Must(err)
|
||||
|
||||
server, err := core.StartInstance("protobuf", cfgBytes)
|
||||
server, err := core.StartInstance(core.FormatProtobuf, cfgBytes)
|
||||
common.Must(err)
|
||||
defer server.Close()
|
||||
|
||||
@@ -178,7 +178,7 @@ func TestV2RayDialUDP(t *testing.T) {
|
||||
cfgBytes, err := proto.Marshal(config)
|
||||
common.Must(err)
|
||||
|
||||
server, err := core.StartInstance("protobuf", cfgBytes)
|
||||
server, err := core.StartInstance(core.FormatProtobuf, cfgBytes)
|
||||
common.Must(err)
|
||||
defer server.Close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user