fix broken test again

This commit is contained in:
Darien Raymond 2018-11-22 17:19:24 +01:00
parent 9cad27e9bd
commit 39c84c8dcd
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ import (
"testing"
"v2ray.com/core/testing/servers/tcp"
"v2ray.com/core/transport/internet"
. "v2ray.com/core/transport/internet/tcp"
. "v2ray.com/ext/assert"
)
@ -20,7 +21,7 @@ func TestGetOriginalDestination(t *testing.T) {
assert(err, IsNil)
defer tcpServer.Close()
conn, err := Dial(context.Background(), dest, nil)
conn, err := Dial(context.Background(), dest, internet.ToMemoryStreamConfig(nil))
assert(err, IsNil)
defer conn.Close()