Delay Closing Connection so that test have chance to complete

pull/2531/head
Shelikhoo 2019-06-07 10:01:23 +08:00 committed by Nicholas Wang
parent 82075d1868
commit 6f541f60bf
No known key found for this signature in database
GPG Key ID: F20CA399C9BD9100
1 changed files with 5 additions and 1 deletions

View File

@ -919,7 +919,6 @@ func TestVMessKCPLarge(t *testing.T) {
servers, err := InitializeServerConfigs(serverConfig, clientConfig)
common.Must(err)
defer CloseAllServers(servers)
var errg errgroup.Group
for i := 0; i < 2; i++ {
@ -928,6 +927,11 @@ func TestVMessKCPLarge(t *testing.T) {
if err := errg.Wait(); err != nil {
t.Error(err)
}
defer func(){
<-time.After(5*time.Second)
CloseAllServers(servers)
}()
}
func TestVMessGCMMux(t *testing.T) {