diff --git a/README.md b/README.md index dde348e..954a1e4 100644 --- a/README.md +++ b/README.md @@ -28,8 +28,8 @@ api: stat_go_uri: "/api/status" android: - enabled: false - apikey: "" + enabled: true + apikey: "YOUR_API_KEY" ios: enabled: false diff --git a/gorush/config_test.go b/gorush/config_test.go index 1811042..ef4e013 100644 --- a/gorush/config_test.go +++ b/gorush/config_test.go @@ -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) }