1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-07-23 13:44:37 -04:00
v2fly/transport/internet/tcp/connection_test.go

20 lines
346 B
Go
Raw Normal View History

2016-06-14 18:10:52 -04:00
package tcp_test
import (
"net"
"testing"
2016-08-20 14:55:45 -04:00
"v2ray.com/core/testing/assert"
. "v2ray.com/core/transport/internet/tcp"
2016-06-14 18:10:52 -04:00
)
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()
}