Browse Source

Delay Closing Connection so that test have chance to complete

pull/2141/head
Shelikhoo 6 years ago
parent
commit
dd8e957f59
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316
  1. 6
      testing/scenarios/vmess_test.go

6
testing/scenarios/vmess_test.go

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