mirror of
https://github.com/astaxie/beego.git
synced 2025-07-15 13:32:17 +00:00
Refactoring: keep config package beego independent
This commit is contained in:
@@ -18,7 +18,6 @@ import (
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/astaxie/beego"
|
||||
"github.com/astaxie/beego/config"
|
||||
)
|
||||
|
||||
@@ -66,7 +65,7 @@ func TestXML(t *testing.T) {
|
||||
t.Error(pi)
|
||||
t.Fatal(err)
|
||||
}
|
||||
if xmlconf.String("runmode") != beego.DEV {
|
||||
if xmlconf.String("runmode") != "dev" {
|
||||
t.Fatal("runmode not equal to dev")
|
||||
}
|
||||
if v, err := xmlconf.Bool("autorender"); err != nil || v != false {
|
||||
|
Reference in New Issue
Block a user