mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-21 20:56:06 +03:00
Reduce size and time of KCP test
This commit is contained in:
parent
da5a28a088
commit
10255bca83
@ -787,8 +787,8 @@ func TestVMessKCP(t *testing.T) {
|
|||||||
defer CloseAllServers(servers)
|
defer CloseAllServers(servers)
|
||||||
|
|
||||||
var errg errgroup.Group
|
var errg errgroup.Group
|
||||||
for i := 0; i < 10; i++ {
|
for i := 0; i < 2; i++ {
|
||||||
errg.Go(testTCPConn(clientPort, 10240*1024, time.Minute*2))
|
errg.Go(testTCPConn(clientPort, 1024, time.Minute*2))
|
||||||
}
|
}
|
||||||
if err := errg.Wait(); err != nil {
|
if err := errg.Wait(); err != nil {
|
||||||
t.Error(err)
|
t.Error(err)
|
||||||
@ -934,7 +934,7 @@ func TestVMessKCPLarge(t *testing.T) {
|
|||||||
|
|
||||||
var errg errgroup.Group
|
var errg errgroup.Group
|
||||||
for i := 0; i < 2; i++ {
|
for i := 0; i < 2; i++ {
|
||||||
errg.Go(testTCPConn(clientPort, 10240*1024, time.Minute*5))
|
errg.Go(testTCPConn(clientPort, 513*1024, time.Minute*5))
|
||||||
}
|
}
|
||||||
if err := errg.Wait(); err != nil {
|
if err := errg.Wait(); err != nil {
|
||||||
t.Error(err)
|
t.Error(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user