yeahoffline / redis-mock

Node.js redis client mock
213 stars 111 forks source link

Fixed bpop family does not return key value array when list is non-empty #102

Closed calvinlauyh closed 5 years ago

calvinlauyh commented 5 years ago

Description:

When the list is non-empty, calling blpop and brpop calls the callback with only the value in the result

Affected methods:

Expected Behaviour:

The result in callback function should be [key, value]

Actual Behaviour:

The resultt in callback function contains only the value

Reference:

https://redis.io/commands/blpop#return-value