fix testing.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
b9fee33699
commit
784732b1b6
|
@ -28,8 +28,8 @@ api:
|
||||||
stat_go_uri: "/api/status"
|
stat_go_uri: "/api/status"
|
||||||
|
|
||||||
android:
|
android:
|
||||||
enabled: false
|
enabled: true
|
||||||
apikey: ""
|
apikey: "YOUR_API_KEY"
|
||||||
|
|
||||||
ios:
|
ios:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
|
@ -37,9 +37,9 @@ func TestWrongYAMLormat(t *testing.T) {
|
||||||
|
|
||||||
// Test config file.
|
// Test config file.
|
||||||
func TestReadConfig(t *testing.T) {
|
func TestReadConfig(t *testing.T) {
|
||||||
config, err := LoadConfYaml("../config/config.yaml")
|
config, err := LoadConfYaml("../config/config.yml")
|
||||||
|
|
||||||
assert.Nil(t, err)
|
assert.Nil(t, err)
|
||||||
assert.Equal(t, "8088", config.Core.Port)
|
assert.Equal(t, "8088", config.Core.Port)
|
||||||
assert.False(t, config.Android.Enabled)
|
assert.True(t, config.Android.Enabled)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue