mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
Add test in slowlog.tcl
This commit is contained in:
parent
f3980bb9fd
commit
b3660be8f5
@ -78,4 +78,14 @@ start_server {tags {"slowlog"} overrides {slowlog-log-slower-than 1000000}} {
|
||||
set e [lindex [r slowlog get] 0]
|
||||
assert_equal {lastentry_client} [lindex $e 5]
|
||||
}
|
||||
|
||||
test {SLOWLOG - can be disabled} {
|
||||
r config set slowlog-log-slower-than 1
|
||||
r slowlog reset
|
||||
assert_equal [r slowlog len] 1
|
||||
r config set slowlog-log-slower-than -1
|
||||
r slowlog reset
|
||||
r debug sleep 0.2
|
||||
assert_equal [r slowlog len] 0
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user