mirror of https://github.com/v2ray/v2ray-core
fix broken test again
parent
9cad27e9bd
commit
39c84c8dcd
|
@ -8,6 +8,7 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"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"
|
||||||
. "v2ray.com/ext/assert"
|
. "v2ray.com/ext/assert"
|
||||||
)
|
)
|
||||||
|
@ -20,7 +21,7 @@ func TestGetOriginalDestination(t *testing.T) {
|
||||||
assert(err, IsNil)
|
assert(err, IsNil)
|
||||||
defer tcpServer.Close()
|
defer tcpServer.Close()
|
||||||
|
|
||||||
conn, err := Dial(context.Background(), dest, nil)
|
conn, err := Dial(context.Background(), dest, internet.ToMemoryStreamConfig(nil))
|
||||||
assert(err, IsNil)
|
assert(err, IsNil)
|
||||||
defer conn.Close()
|
defer conn.Close()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue