2019-02-28 23:57:20 +08:00
|
|
|
// Copyright 2018 gf Author(https://github.com/gogf/gf). All Rights Reserved.
|
|
|
|
//
|
|
|
|
// This Source Code Form is subject to the terms of the MIT License.
|
|
|
|
// If a copy of the MIT was not distributed with this file,
|
|
|
|
// You can obtain one at https://github.com/gogf/gf.
|
|
|
|
|
|
|
|
package ghttp_test
|
|
|
|
|
|
|
|
import (
|
2019-07-29 21:01:19 +08:00
|
|
|
"github.com/gogf/gf/container/garray"
|
2019-09-04 19:44:13 +08:00
|
|
|
"github.com/gogf/gf/os/genv"
|
2019-02-28 23:57:20 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
2019-07-23 23:20:27 +08:00
|
|
|
ports = garray.NewIntArray(true)
|
2019-02-28 23:57:20 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
2019-09-04 19:44:13 +08:00
|
|
|
genv.Set("UNDER_TEST", "1")
|
2020-08-12 09:10:50 +08:00
|
|
|
for i := 7000; i <= 8000; i++ {
|
2019-06-19 09:06:52 +08:00
|
|
|
ports.Append(i)
|
|
|
|
}
|
2019-02-28 23:57:20 +08:00
|
|
|
}
|