diff --git a/config/config_test.go b/config/config_test.go deleted file mode 100644 index a4ff1c1..0000000 --- a/config/config_test.go +++ /dev/null @@ -1,21 +0,0 @@ -package config - -import ( - "io/ioutil" - "testing" - - "gopkg.in/yaml.v2" -) - -func TestConfig(t *testing.T) { - conf := &Config{} - byt, err := ioutil.ReadFile("../config.yaml") - if err != nil { - t.Error(err) - } - - yaml.Unmarshal(byt, conf) - if "alidns" != conf.DNS.Name { - t.Error("DNS Name必须为alidns") - } -}