2020-07-07 18:39:24 +08:00
|
|
|
package intimate
|
2020-07-06 16:33:35 +08:00
|
|
|
|
|
|
|
import "testing"
|
|
|
|
|
|
|
|
func TestConfig(t *testing.T) {
|
|
|
|
config := &Config{}
|
|
|
|
config.Load()
|
|
|
|
|
2020-07-10 12:05:33 +08:00
|
|
|
if config.Database.SourceURI != "root:@tcp(127.0.0.1:4000)/intimate_source" {
|
2020-07-06 16:33:35 +08:00
|
|
|
t.Error("error yaml loaded, ", config)
|
|
|
|
}
|
|
|
|
}
|