@@ -26,7 +26,7 @@ func getUniquePrefix() string {
2626
2727func newTestRedisBroker (tb testing.TB , n * Node , useStreams bool , useCluster bool , port int ) * RedisBroker {
2828 if useCluster {
29- return NewTestRedisBrokerCluster (tb , n , getUniquePrefix (), useStreams )
29+ return NewTestRedisBrokerCluster (tb , n , getUniquePrefix (), useStreams , port )
3030 }
3131 return NewTestRedisBroker (tb , n , getUniquePrefix (), useStreams , port )
3232}
@@ -77,7 +77,7 @@ func NewTestRedisBroker(tb testing.TB, n *Node, prefix string, useStreams bool,
7777 return e
7878}
7979
80- func NewTestRedisBrokerCluster (tb testing.TB , n * Node , prefix string , useStreams bool ) * RedisBroker {
80+ func NewTestRedisBrokerCluster (tb testing.TB , n * Node , prefix string , useStreams bool , port int ) * RedisBroker {
8181 tb .Helper ()
8282
8383 numClusterNodes := 3
@@ -91,7 +91,7 @@ func NewTestRedisBrokerCluster(tb testing.TB, n *Node, prefix string, useStreams
9191 var clusterAddresses []string
9292
9393 for i := 0 ; i < numClusterNodes ; i ++ {
94- clusterAddresses = append (clusterAddresses , net .JoinHostPort ("127.0.0.1" , strconv .Itoa (7000 + i )))
94+ clusterAddresses = append (clusterAddresses , net .JoinHostPort ("127.0.0.1" , strconv .Itoa (port + i )))
9595 }
9696
9797 redisConf := RedisShardConfig {
@@ -179,11 +179,14 @@ type historyRedisTest struct {
179179
180180var historyRedisTests = []historyRedisTest {
181181 {"rd_single_list" , false , false , 6379 },
182+ {"vk_single_list" , false , false , 8379 },
182183 {"rd_single_strm" , true , false , 6379 },
184+ {"vk_single_strm" , true , false , 8379 },
183185 {"df_single_list" , false , false , 7379 },
184186 {"df_single_strm" , true , false , 7379 },
185- {"rd_cluster_list" , false , true , 0 },
186- {"rd_cluster_strm" , true , true , 0 },
187+ {"rd_cluster_list" , false , true , 7000 },
188+ {"rd_cluster_strm" , true , true , 7000 },
189+ {"vk_cluster_strm" , true , true , 8000 },
187190}
188191
189192type noHistoryRedisTest struct {
@@ -195,6 +198,7 @@ type noHistoryRedisTest struct {
195198var noHistoryRedisTests = []noHistoryRedisTest {
196199 {"rd_single" , false , 6379 },
197200 {"df_single" , false , 7379 },
201+ {"vk_single" , false , 8379 },
198202 {"rd_cluster" , false , 0 },
199203}
200204
0 commit comments