1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-28 06:42:00 +03:00

Enable race tests.

This commit is contained in:
Vladimir Mihailenco
2014-11-18 12:11:06 +02:00
parent 9778c1acf5
commit 20c738a103
3 changed files with 16 additions and 8 deletions

View File

@ -7,8 +7,11 @@ import (
)
func TestRateLimiter(t *testing.T) {
const n = 100000
rl := newRateLimiter(time.Second, n)
var n = 100000
if testing.Short() {
n = 1000
}
rl := newRateLimiter(time.Minute, n)
wg := &sync.WaitGroup{}
for i := 0; i < n; i++ {