fix test last time

pull/1435/head
Darien Raymond 6 years ago
parent 39c84c8dcd
commit 9d17221266
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

@ -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…
Cancel
Save