frp/test/e2e/framework/util.go

19 lines
370 B
Go
Raw Normal View History

2020-06-02 22:48:55 +08:00
package framework
import (
"github.com/google/uuid"
)
// RunID is a unique identifier of the e2e run.
// Beware that this ID is not the same for all tests in the e2e run, because each Ginkgo node creates it separately.
var RunID string
func init() {
uuid, _ := uuid.NewUUID()
RunID = uuid.String()
}
2020-09-07 14:57:23 +08:00
func GenPortName(name string) string {
return "Port" + name
}