We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce82ee9 commit 334e859Copy full SHA for 334e859
httprateredis_test.go
@@ -13,13 +13,14 @@ import (
13
14
func TestRedisCounter(t *testing.T) {
15
limitCounter, err := httprateredis.NewRedisLimitCounter(&httprateredis.Config{
16
- Host: "localhost",
17
- Port: 6379,
18
- MaxIdle: 500,
19
- MaxActive: 500,
20
- DBIndex: 0,
21
- ClientName: "httprateredis_test",
22
- PrefixKey: fmt.Sprintf("httprate:test:%v", rand.Int31n(100000)), // Unique key for each test
+ Host: "localhost",
+ Port: 6379,
+ MaxIdle: 500,
+ MaxActive: 500,
+ DBIndex: 0,
+ ClientName: "httprateredis_test",
+ PrefixKey: fmt.Sprintf("httprate:test:%v", rand.Int31n(100000)), // Unique key for each test
23
+ FallbackDisabled: true,
24
})
25
if err != nil {
26
t.Fatalf("redis not available: %v", err)
0 commit comments