Delay Closing Connection so that test have chance to complete

pull/2531/head
Shelikhoo 6 years ago committed by Nicholas Wang
parent 82075d1868
commit 6f541f60bf
No known key found for this signature in database
GPG Key ID: F20CA399C9BD9100

@ -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) {

Loading…
Cancel
Save