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
a3af8d8e
Commit
a3af8d8e
authored
Apr 08, 2012
by
antirez
Browse files
Test for maxclients.
parent
69e79589
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/test_helper.tcl
View file @
a3af8d8e
...
...
@@ -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 @
a3af8d8e
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