remove old config_test.go

This commit is contained in:
jeessy2
2020-12-24 15:46:25 +08:00
parent c4d1330341
commit 7598dd9182

View File

@ -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")
}
}