mirror of https://github.com/v2ray/v2ray-core
fix test last time
parent
39c84c8dcd
commit
9d17221266
|
@ -7,6 +7,7 @@ import (
|
|||
"strings"
|
||||
"testing"
|
||||
|
||||
"v2ray.com/core/common"
|
||||
"v2ray.com/core/testing/servers/tcp"
|
||||
"v2ray.com/core/transport/internet"
|
||||
. "v2ray.com/core/transport/internet/tcp"
|
||||
|
@ -21,7 +22,9 @@ func TestGetOriginalDestination(t *testing.T) {
|
|||
assert(err, IsNil)
|
||||
defer tcpServer.Close()
|
||||
|
||||
conn, err := Dial(context.Background(), dest, internet.ToMemoryStreamConfig(nil))
|
||||
config, err := internet.ToMemoryStreamConfig(nil)
|
||||
common.Must(err)
|
||||
conn, err := Dial(context.Background(), dest, config)
|
||||
assert(err, IsNil)
|
||||
defer conn.Close()
|
||||
|
||||
|
|
Loading…
Reference in New Issue