mirror of
https://github.com/jeessy2/ddns-go.git
synced 2025-10-20 15:33:46 +08:00
remove old config_test.go
This commit is contained in:
@ -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")
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user