mirror of https://github.com/v2ray/v2ray-core
parent
ad996f4db8
commit
c9eacc534a
|
@ -8,7 +8,6 @@ import (
|
||||||
|
|
||||||
"v2ray.com/core/testing/assert"
|
"v2ray.com/core/testing/assert"
|
||||||
"v2ray.com/core/testing/servers/tcp"
|
"v2ray.com/core/testing/servers/tcp"
|
||||||
"v2ray.com/core/transport/internet"
|
|
||||||
. "v2ray.com/core/transport/internet/tcp"
|
. "v2ray.com/core/transport/internet/tcp"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -20,8 +19,7 @@ func TestGetOriginalDestination(t *testing.T) {
|
||||||
assert.Error(err).IsNil()
|
assert.Error(err).IsNil()
|
||||||
defer tcpServer.Close()
|
defer tcpServer.Close()
|
||||||
|
|
||||||
ctx := internet.ContextWithTransportSettings(context.Background, &Config{})
|
conn, err := Dial(context.Background(), dest)
|
||||||
conn, err := Dial(ctx, dest)
|
|
||||||
assert.Error(err).IsNil()
|
assert.Error(err).IsNil()
|
||||||
defer conn.Close()
|
defer conn.Close()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue