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"
|
||||
|
||||
android:
|
||||
enabled: false
|
||||
apikey: ""
|
||||
enabled: true
|
||||
apikey: "YOUR_API_KEY"
|
||||
|
||||
ios:
|
||||
enabled: false
|
||||
|
|
|
@ -37,9 +37,9 @@ func TestWrongYAMLormat(t *testing.T) {
|
|||
|
||||
// Test config file.
|
||||
func TestReadConfig(t *testing.T) {
|
||||
config, err := LoadConfYaml("../config/config.yaml")
|
||||
config, err := LoadConfYaml("../config/config.yml")
|
||||
|
||||
assert.Nil(t, err)
|
||||
assert.Equal(t, "8088", config.Core.Port)
|
||||
assert.False(t, config.Android.Enabled)
|
||||
assert.True(t, config.Android.Enabled)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue