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:
@ -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++ {
|
||||
|
Reference in New Issue
Block a user