We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44bf104 commit b45bf9cCopy full SHA for b45bf9c
redis/redisq_test.go
@@ -3,7 +3,6 @@ package redis
3
import (
4
"bytes"
5
"context"
6
- "os"
7
"testing"
8
"time"
9
@@ -26,14 +25,8 @@ const testPayload = `{
26
25
"phone": "+1 (823) 515-3571"
27
}`
28
29
-func TestRedisQueueEnqueue(t *testing.T) {
30
- t.Setenv("REDIS_ADDR", "localhost:6379")
31
- redisAddr := os.Getenv("REDIS_ADDR")
32
- if redisAddr == "" {
33
- t.Skip("skipping test since REDIS_ADDR is not set")
34
- }
35
-
36
- client := redis.NewClient(&redis.Options{Addr: redisAddr})
+func TestRedisQueue(t *testing.T) {
+ client := redis.NewClient(&redis.Options{Addr: "localhost:6379"})
37
38
q := NewQueue(client, WithCompletedJobTTL(time.Minute*30))
39
0 commit comments