mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-30 05:56:54 -05:00
Delay Closing Connection so that test have chance to complete
This commit is contained in:
parent
a32d6416e5
commit
dd8e957f59
@ -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…
Reference in New Issue
Block a user