mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-09-06 20:14:31 -04:00
20 lines
371 B
Go
20 lines
371 B
Go
package ws_test
|
|
|
|
import (
|
|
"net"
|
|
"testing"
|
|
|
|
"github.com/v2ray/v2ray-core/testing/assert"
|
|
. "github.com/v2ray/v2ray-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()
|
|
}
|