Commit ef23f3ac authored by antirez's avatar antirez
Browse files

Script max execution time test disabled for now since it is no longer enforced.

parent d569f39a
...@@ -118,16 +118,18 @@ start_server {tags {"scripting"}} { ...@@ -118,16 +118,18 @@ start_server {tags {"scripting"}} {
r get mykey r get mykey
} {this is DB 9} } {this is DB 9}
test {EVAL - Script can't run more than configured time limit} { if 0 {
r config set lua-time-limit 1 test {EVAL - Script can't run more than configured time limit} {
catch { r config set lua-time-limit 1
r eval { catch {
local i = 0 r eval {
while true do i=i+1 end local i = 0
} 0 while true do i=i+1 end
} e } 0
set _ $e } e
} {*execution time*} set _ $e
} {*execution time*}
}
test {EVAL - Scripts can't run certain commands} { test {EVAL - Scripts can't run certain commands} {
set e {} set e {}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment