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" stat_go_uri: "/api/status"
android: android:
enabled: false enabled: true
apikey: "" apikey: "YOUR_API_KEY"
ios: ios:
enabled: false enabled: false

View File

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