2abda095 by astaxie

fix #277

1 parent dbf6ca2b
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 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!