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

pull/2141/head
Shelikhoo 2019-06-07 12:05:06 +08:00
parent dd8e957f59
commit 8cf38342e9
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316
1 changed files with 5 additions and 1 deletions

View File

@ -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)
}()
}