fix freedom test

pull/82/head
v2ray 2016-02-04 13:09:17 +01:00
parent b44268d409
commit 77f5c15dbc
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ func TestUnreachableDestination(t *testing.T) {
traffic := ray.NewRay() traffic := ray.NewRay()
data2Send := "Data to be sent to remote" data2Send := "Data to be sent to remote"
payload := alloc.NewSmallBuffer().Clear().Append([]byte(data2Send)) payload := alloc.NewSmallBuffer().Clear().Append([]byte(data2Send))
packet := v2net.NewPacket(v2net.TCPDestination(v2net.IPAddress([]byte{127, 0, 0, 2}), 80), payload, false) packet := v2net.NewPacket(v2net.TCPDestination(v2net.IPAddress([]byte{127, 0, 0, 1}), 128), payload, false)
err := freedom.Dispatch(packet, traffic) err := freedom.Dispatch(packet, traffic)
assert.Error(err).IsNotNil() assert.Error(err).IsNotNil()