Skip to content

Commit 904462d

Browse files
committed
test: Disable tests for cancelled context
1 parent 2add8bd commit 904462d

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

commands_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4843,7 +4843,8 @@ var _ = Describe("Commands", func() {
48434843
Expect(err).To(Equal(redis.Nil))
48444844
})
48454845

4846-
Describe("canceled context", func() {
4846+
// https://github.com/redis/go-redis/issues/2276
4847+
PDescribe("canceled context", func() {
48474848
It("should unblock XRead", func() {
48484849
ctx2, cancel := context.WithCancel(ctx)
48494850
errCh := make(chan error, 1)
@@ -5042,7 +5043,8 @@ var _ = Describe("Commands", func() {
50425043
Expect(n).To(Equal(int64(2)))
50435044
})
50445045

5045-
Describe("canceled context", func() {
5046+
// https://github.com/redis/go-redis/issues/2276
5047+
PDescribe("canceled context", func() {
50465048
It("should unblock XReadGroup", func() {
50475049
ctx2, cancel := context.WithCancel(ctx)
50485050
errCh := make(chan error, 1)

pubsub_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,8 @@ var _ = Describe("PubSub", func() {
569569
Expect(msg.Payload).To(Equal(text))
570570
})
571571

572-
Describe("canceled context", func() {
572+
// https://github.com/redis/go-redis/issues/2276
573+
PDescribe("canceled context", func() {
573574
It("should unblock ReceiveMessage", func() {
574575
pubsub := client.Subscribe(ctx, "mychannel")
575576
defer pubsub.Close()

0 commit comments

Comments
 (0)