mirror of https://github.com/v2ray/v2ray-core
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
346 B
20 lines
346 B
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()
|
|
}
|