Skip to content

Commit b45bf9c

Browse files
committed
removed test cond
1 parent 44bf104 commit b45bf9c

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

redis/redisq_test.go

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package redis
33
import (
44
"bytes"
55
"context"
6-
"os"
76
"testing"
87
"time"
98

@@ -26,14 +25,8 @@ const testPayload = `{
2625
"phone": "+1 (823) 515-3571"
2726
}`
2827

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})
28+
func TestRedisQueue(t *testing.T) {
29+
client := redis.NewClient(&redis.Options{Addr: "localhost:6379"})
3730

3831
q := NewQueue(client, WithCompletedJobTTL(time.Minute*30))
3932

0 commit comments

Comments
 (0)