fix testing.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2016-04-11 21:32:40 +08:00
parent b9fee33699
commit 784732b1b6
2 changed files with 4 additions and 4 deletions

View File

@ -28,8 +28,8 @@ api:
stat_go_uri: "/api/status"
android:
enabled: false
apikey: ""
enabled: true
apikey: "YOUR_API_KEY"
ios:
enabled: false

View File

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