Jelajahi Sumber

wait for test ready

v2ray 9 tahun lalu
induk
melakukan
030fca10ba
1 mengubah file dengan 3 tambahan dan 0 penghapusan
  1. 3 0
      testing/scenarios/server_env.go

+ 3 - 0
testing/scenarios/server_env.go

@@ -6,6 +6,7 @@ import (
 	"os/exec"
 	"path/filepath"
 	"runtime"
+	"time"
 
 	_ "github.com/v2ray/v2ray-core/app/router/rules"
 	"github.com/v2ray/v2ray-core/common/log"
@@ -81,6 +82,8 @@ func InitializeServer(configFile string) error {
 		return err
 	}
 
+	time.Sleep(time.Second)
+
 	runningServers = append(runningServers, proc)
 
 	return nil