You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lua: ./redis-lua-unit/src/commands/hash.lua:22: assertion failed!
stack traceback:
[C]: in function 'assert'
./redis-lua-unit/src/commands/hash.lua:22: in function '?'
./redis-lua-unit/src//RedisLua.lua:20: in function 'call'
test.lua:10: in main chunk
[C]: ?
The text was updated successfully, but these errors were encountered:
@FGRibreau It's a little complex to mock all redis functions from scratch, like zset is much difficult.
I have found a new way to do the redis_mock, I use the redis lua client, and wrap it to mock redis.call,
redis.call('hget', 'foo', 'bar')
lua: ./redis-lua-unit/src/commands/hash.lua:22: assertion failed!
stack traceback:
[C]: in function 'assert'
./redis-lua-unit/src/commands/hash.lua:22: in function '?'
./redis-lua-unit/src//RedisLua.lua:20: in function 'call'
test.lua:10: in main chunk
[C]: ?
The text was updated successfully, but these errors were encountered: