Browse Source

Delay Closing Connection so that test have chance to complete(Additional)

pull/2531/head
Shelikhoo 6 years ago committed by Nicholas Wang
parent
commit
289105fa8c
No known key found for this signature in database
GPG Key ID: F20CA399C9BD9100
  1. 6
      testing/scenarios/vmess_test.go

6
testing/scenarios/vmess_test.go

@ -1165,7 +1165,6 @@ func TestVMessGCMMuxUDP(t *testing.T) {
servers, err := InitializeServerConfigs(serverConfig, clientConfig)
common.Must(err)
defer CloseAllServers(servers)
for range "abcd" {
var errg errgroup.Group
@ -1178,4 +1177,9 @@ func TestVMessGCMMuxUDP(t *testing.T) {
}
time.Sleep(time.Second)
}
defer func(){
<-time.After(5*time.Second)
CloseAllServers(servers)
}()
}

Loading…
Cancel
Save