1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-07-09 06:44:30 -04:00
v2fly/transport/internet/tcp/connection_test.go
2016-08-20 20:55:45 +02:00

20 lines
346 B
Go

package tcp_test
import (
"net"
"testing"
"v2ray.com/core/testing/assert"
. "v2ray.com/core/transport/internet/tcp"
)
func TestRawConnection(t *testing.T) {
assert := assert.On(t)
rawConn := RawConnection{net.TCPConn{}}
assert.Bool(rawConn.Reusable()).IsFalse()
rawConn.SetReusable(true)
assert.Bool(rawConn.Reusable()).IsFalse()
}