mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Merge branch 'unstable' of github.com:/antirez/redis into unstable
This commit is contained in:
commit
cfc879b563
@ -6,16 +6,17 @@ start_server {tags {"introspection"}} {
|
||||
test {MONITOR can log executed commands} {
|
||||
set rd [redis_deferring_client]
|
||||
$rd monitor
|
||||
assert_match {*OK*} [$rd read]
|
||||
r set foo bar
|
||||
r get foo
|
||||
list [$rd read] [$rd read] [$rd read]
|
||||
} {*OK*"set" "foo"*"get" "foo"*}
|
||||
list [$rd read] [$rd read]
|
||||
} {*"set" "foo"*"get" "foo"*}
|
||||
|
||||
test {MONITOR can log commands issued by the scripting engine} {
|
||||
set rd [redis_deferring_client]
|
||||
$rd monitor
|
||||
r eval {redis.call('set',KEYS[1],ARGV[1])} 1 foo bar
|
||||
$rd read ;# Discard the OK
|
||||
r eval {redis.call('set',KEYS[1],ARGV[1])} 1 foo bar
|
||||
assert_match {*eval*} [$rd read]
|
||||
assert_match {*lua*"set"*"foo"*"bar"*} [$rd read]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user