Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
ef23f3ac
Commit
ef23f3ac
authored
Oct 31, 2011
by
antirez
Browse files
Script max execution time test disabled for now since it is no longer enforced.
parent
d569f39a
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/scripting.tcl
View file @
ef23f3ac
...
@@ -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
{}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment