Reduce size and time of UDP test

In the past, the UDP test in mass parallel proved to be the source of instability. This change try to improve pass rate.
This commit is contained in:
yuhan6665 2024-01-12 21:56:22 -05:00
parent 7f7f57d3b6
commit 77376ed94f
4 changed files with 22 additions and 14 deletions

View file

@ -475,7 +475,7 @@ func TestVMessGCMUDP(t *testing.T) {
defer CloseAllServers(servers)
var errg errgroup.Group
for i := 0; i < 10; i++ {
for i := 0; i < 2; i++ {
errg.Go(testUDPConn(clientPort, 1024, time.Second*5))
}
if err := errg.Wait(); err != nil {
@ -1176,7 +1176,7 @@ func TestVMessGCMMuxUDP(t *testing.T) {
for range "ab" {
var errg errgroup.Group
for i := 0; i < 16; i++ {
for i := 0; i < 2; i++ {
errg.Go(testTCPConn(clientPort, 1024, time.Second*10))
errg.Go(testUDPConn(clientUDPPort, 1024, time.Second*10))
}