r get mykey
} {this is DB 9}
- test {EVAL - Script can't run more than configured time limit} {
- r config set lua-time-limit 1
- catch {
- r eval {
- local i = 0
- while true do i=i+1 end
- } 0
- } e
- set _ $e
- } {*execution time*}
+ if 0 {
+ test {EVAL - Script can't run more than configured time limit} {
+ r config set lua-time-limit 1
+ catch {
+ r eval {
+ local i = 0
+ while true do i=i+1 end
+ } 0
+ } e
+ set _ $e
+ } {*execution time*}
+ }
test {EVAL - Scripts can't run certain commands} {
set e {}
list \
[r script load "return 'loaded'"] \
[r evalsha b534286061d4b9e4026607613b95c06c06015ae8 0]
- } {OK loaded}
+ } {b534286061d4b9e4026607613b95c06c06015ae8 loaded}
}
start_server {tags {"scripting repl"}} {