mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 23:01:28 +00:00
fix #277
This commit is contained in:
parent
dbf6ca2b4c
commit
2abda0954b
@ -1,7 +1,7 @@
|
|||||||
package testing
|
package testing
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/astaxie/beego"
|
"github.com/astaxie/beego/config"
|
||||||
"github.com/astaxie/beego/httplib"
|
"github.com/astaxie/beego/httplib"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -14,7 +14,7 @@ type TestHttpRequest struct {
|
|||||||
|
|
||||||
func getPort() string {
|
func getPort() string {
|
||||||
if port == "" {
|
if port == "" {
|
||||||
config, err := beego.ParseConfig("../conf/app.conf")
|
config, err := config.NewConfig("ini", "../conf/app.conf")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "8080"
|
return "8080"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user