chore: update cluster testing

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2021-09-20 20:21:06 +08:00
parent 2b4cab0a95
commit 24c3492541
1 changed files with 2 additions and 0 deletions

View File

@ -107,6 +107,7 @@ func (suite *ConfigTestSuite) TestValidateConfDefault() {
assert.Equal(suite.T(), true, suite.ConfGorushDefault.Log.HideToken)
assert.Equal(suite.T(), "memory", suite.ConfGorushDefault.Stat.Engine)
assert.Equal(suite.T(), false, suite.ConfGorushDefault.Stat.Redis.Cluster)
assert.Equal(suite.T(), "localhost:6379", suite.ConfGorushDefault.Stat.Redis.Addr)
assert.Equal(suite.T(), "", suite.ConfGorushDefault.Stat.Redis.Password)
assert.Equal(suite.T(), 0, suite.ConfGorushDefault.Stat.Redis.DB)
@ -184,6 +185,7 @@ func (suite *ConfigTestSuite) TestValidateConf() {
assert.Equal(suite.T(), true, suite.ConfGorush.Log.HideToken)
assert.Equal(suite.T(), "memory", suite.ConfGorush.Stat.Engine)
assert.Equal(suite.T(), false, suite.ConfGorush.Stat.Redis.Cluster)
assert.Equal(suite.T(), "localhost:6379", suite.ConfGorush.Stat.Redis.Addr)
assert.Equal(suite.T(), "", suite.ConfGorush.Stat.Redis.Password)
assert.Equal(suite.T(), 0, suite.ConfGorush.Stat.Redis.DB)