1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-29 17:41:15 +03:00

Fix benchmarks to use Redis on default port and FLUSHDB before run.

This commit is contained in:
Vladimir Mihailenco
2015-07-18 11:22:42 +03:00
parent 2e21f6b3e7
commit ba4682c2a3
3 changed files with 26 additions and 35 deletions

View File

@ -305,6 +305,10 @@ var _ = Describe("Cluster", func() {
//------------------------------------------------------------------------------
func BenchmarkRedisClusterPing(b *testing.B) {
if testing.Short() {
b.Skip("skipping in short mode")
}
cluster := &clusterScenario{
ports: []string{"8220", "8221", "8222", "8223", "8224", "8225"},
nodeIds: make([]string, 6),