Skip to content

Commit

Permalink
fix test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
HDT3213 committed Aug 20, 2023
1 parent 076749c commit 8cabcf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions delayqueue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func TestDelayQueue_StopConsume(t *testing.T) {
<-done
}

func TestDelayQueue_Massive_Consume(t *testing.T) {
func TestDelayQueue_Massive_Backlog(t *testing.T) {
redisCli := redis.NewClient(&redis.Options{
Addr: "127.0.0.1:6379",
})
Expand Down Expand Up @@ -195,7 +195,7 @@ func TestDelayQueue_Massive_Consume(t *testing.T) {
ids := make([]string, 0, q.fetchLimit)
for {
idStr, err := q.ready2Unack()
if err == redis.Nil { // consumed all
if err == NilErr { // consumed all
break
}
if err != nil {
Expand Down

0 comments on commit 8cabcf8

Please sign in to comment.