From 2abda0954b44c80544b9f3d240889747632f18b9 Mon Sep 17 00:00:00 2001 From: astaxie Date: Wed, 6 Nov 2013 16:51:33 +0800 Subject: [PATCH] fix #277 --- testing/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/client.go b/testing/client.go index e3c51ec9..7031f873 100644 --- a/testing/client.go +++ b/testing/client.go @@ -1,7 +1,7 @@ package testing import ( - "github.com/astaxie/beego" + "github.com/astaxie/beego/config" "github.com/astaxie/beego/httplib" ) @@ -14,7 +14,7 @@ type TestHttpRequest struct { func getPort() string { if port == "" { - config, err := beego.ParseConfig("../conf/app.conf") + config, err := config.NewConfig("ini", "../conf/app.conf") if err != nil { return "8080" }