1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-07-26 11:44:22 -04:00

fix test break

This commit is contained in:
Darien Raymond 2017-01-26 20:55:01 +01:00
parent ca721230e1
commit d2764d8776
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -9,7 +9,6 @@ import (
"v2ray.com/core/common/buf" "v2ray.com/core/common/buf"
v2net "v2ray.com/core/common/net" v2net "v2ray.com/core/common/net"
"v2ray.com/core/proxy"
"v2ray.com/core/testing/assert" "v2ray.com/core/testing/assert"
"v2ray.com/core/transport/internet/internal" "v2ray.com/core/transport/internet/internal"
. "v2ray.com/core/transport/internet/udp" . "v2ray.com/core/transport/internet/udp"
@ -23,7 +22,7 @@ func TestHubSocksOption(t *testing.T) {
} }
hub, err := ListenUDP(v2net.LocalHostIP, v2net.Port(0), ListenOption{ hub, err := ListenUDP(v2net.LocalHostIP, v2net.Port(0), ListenOption{
Callback: func(*buf.Buffer, *proxy.SessionInfo) {}, Callback: func(*buf.Buffer, v2net.Destination, v2net.Destination) {},
ReceiveOriginalDest: true, ReceiveOriginalDest: true,
}) })
assert.Error(err).IsNil() assert.Error(err).IsNil()