mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-28 07:29:44 +00:00
remove port testing
This commit is contained in:
9 files changed
+17
-42
No files matched your search
@@ -13,7 +13,6 @@ import (
|
||||
"github.com/v2ray/v2ray-core/app/router/rules"
|
||||
"github.com/v2ray/v2ray-core/common/alloc"
|
||||
v2net "github.com/v2ray/v2ray-core/common/net"
|
||||
v2nettesting "github.com/v2ray/v2ray-core/common/net/testing"
|
||||
"github.com/v2ray/v2ray-core/proxy"
|
||||
. "github.com/v2ray/v2ray-core/proxy/freedom"
|
||||
"github.com/v2ray/v2ray-core/testing/assert"
|
||||
@@ -24,10 +23,8 @@ import (
|
||||
|
||||
func TestSinglePacket(t *testing.T) {
|
||||
assert := assert.On(t)
|
||||
port := v2nettesting.PickPort()
|
||||
|
||||
tcpServer := &tcp.Server{
|
||||
Port: port,
|
||||
MsgProcessor: func(data []byte) []byte {
|
||||
buffer := make([]byte, 0, 2048)
|
||||
buffer = append(buffer, []byte("Processed: ")...)
|
||||
|
||||
Reference in new issue
Block a user