Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
fdf8bd40
Commit
fdf8bd40
authored
Apr 08, 2012
by
antirez
Browse files
Test for maxclients.
parent
e9574039
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/test_helper.tcl
View file @
fdf8bd40
...
...
@@ -38,6 +38,7 @@ set ::all_tests {
unit/scripting
unit/maxmemory
unit/introspection
unit/limits
unit/obuf-limits
unit/dump
}
...
...
tests/unit/limits.tcl
0 → 100644
View file @
fdf8bd40
start_server
{
tags
{
"limits"
}
overrides
{
maxclients 10
}}
{
test
{
Check if maxclients works refusing connections
}
{
set c 0
catch
{
while 1
{
incr c
redis_deferring_client
}
}
e
assert
{
$c
> 8 && $c <= 10
}
set e
}
{
*ERR max*reached*
}
}
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