From 784732b1b6de6c92da29ea9b0b66f91f2b03d94a Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Mon, 11 Apr 2016 21:32:40 +0800 Subject: [PATCH] fix testing. Signed-off-by: Bo-Yi Wu --- README.md | 4 ++-- gorush/config_test.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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) }