fix #277
Showing
1 changed file
with
2 additions
and
2 deletions
| 1 | package testing | 1 | package testing |
| 2 | 2 | ||
| 3 | import ( | 3 | import ( |
| 4 | "github.com/astaxie/beego" | 4 | "github.com/astaxie/beego/config" |
| 5 | "github.com/astaxie/beego/httplib" | 5 | "github.com/astaxie/beego/httplib" |
| 6 | ) | 6 | ) |
| 7 | 7 | ||
| ... | @@ -14,7 +14,7 @@ type TestHttpRequest struct { | ... | @@ -14,7 +14,7 @@ type TestHttpRequest struct { |
| 14 | 14 | ||
| 15 | func getPort() string { | 15 | func getPort() string { |
| 16 | if port == "" { | 16 | if port == "" { |
| 17 | config, err := beego.ParseConfig("../conf/app.conf") | 17 | config, err := config.NewConfig("ini", "../conf/app.conf") |
| 18 | if err != nil { | 18 | if err != nil { |
| 19 | return "8080" | 19 | return "8080" |
| 20 | } | 20 | } | ... | ... |
-
Please register or sign in to post a comment