From 24c3492541438bbef9c54a937e4fd058e808ad54 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Mon, 20 Sep 2021 20:21:06 +0800 Subject: [PATCH] chore: update cluster testing Signed-off-by: Bo-Yi Wu --- config/config_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/config_test.go b/config/config_test.go index 7a2f875..ec3df03 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -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)