diff --git a/config/ini_test.go b/config/ini_test.go index 38093e0e..7599ab8b 100644 --- a/config/ini_test.go +++ b/config/ini_test.go @@ -17,8 +17,6 @@ package config import ( "os" "testing" - - "github.com/astaxie/beego" ) var inicontext = ` @@ -69,7 +67,7 @@ func TestIni(t *testing.T) { t.Error(pi) t.Fatal(err) } - if iniconf.String("runmode") != beego.DEV { + if iniconf.String("runmode") != "dev" { t.Fatal("runmode not equal to dev") } if v, err := iniconf.Bool("autorender"); err != nil || v != false { diff --git a/config/json_test.go b/config/json_test.go index ca4dfffd..5aedae36 100644 --- a/config/json_test.go +++ b/config/json_test.go @@ -17,8 +17,6 @@ package config import ( "os" "testing" - - "github.com/astaxie/beego" ) var jsoncontext = `{ @@ -122,7 +120,7 @@ func TestJson(t *testing.T) { t.Error(pi) t.Fatal(err) } - if jsonconf.String("runmode") != beego.DEV { + if jsonconf.String("runmode") != "dev" { t.Fatal("runmode not equal to dev") } if v := jsonconf.Strings("unknown"); len(v) > 0 { diff --git a/config/xml/xml_test.go b/config/xml/xml_test.go index 721a85fd..fa3c17f1 100644 --- a/config/xml/xml_test.go +++ b/config/xml/xml_test.go @@ -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 { diff --git a/config/yaml/yaml_test.go b/config/yaml/yaml_test.go index 09cde8fd..19ecdca1 100644 --- a/config/yaml/yaml_test.go +++ b/config/yaml/yaml_test.go @@ -18,7 +18,6 @@ import ( "os" "testing" - "github.com/astaxie/beego" "github.com/astaxie/beego/config" ) @@ -63,7 +62,7 @@ func TestYaml(t *testing.T) { t.Error(pi) t.Fatal(err) } - if yamlconf.String("runmode") != beego.DEV { + if yamlconf.String("runmode") != "dev" { t.Fatal("runmode not equal to dev") } if v, err := yamlconf.Bool("autorender"); err != nil || v != false {