1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-28 04:55:37 -05:00

fix test break

This commit is contained in:
Darien Raymond
2017-04-18 13:02:42 +02:00
parent ad996f4db8
commit c9eacc534a

View File

@@ -8,7 +8,6 @@ import (
"v2ray.com/core/testing/assert"
"v2ray.com/core/testing/servers/tcp"
"v2ray.com/core/transport/internet"
. "v2ray.com/core/transport/internet/tcp"
)
@@ -20,8 +19,7 @@ func TestGetOriginalDestination(t *testing.T) {
assert.Error(err).IsNil()
defer tcpServer.Close()
ctx := internet.ContextWithTransportSettings(context.Background, &Config{})
conn, err := Dial(ctx, dest)
conn, err := Dial(context.Background(), dest)
assert.Error(err).IsNil()
defer conn.Close()