diff options
author | antirez <antirez@gmail.com> | 2012-04-08 11:16:40 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2012-04-08 11:16:40 +0200 |
commit | a3af8d8e49c9b65f67403ca53dd5b573fadc55b4 (patch) | |
tree | 52ffaf33c9112c31d22e51be2faa03bb03ee5f5e /tests/unit/limits.tcl | |
parent | 69e7958918a7e7644654cc00d2846251b3f7b4d5 (diff) | |
download | redis-a3af8d8e49c9b65f67403ca53dd5b573fadc55b4.tar.gz |
Test for maxclients.
Diffstat (limited to 'tests/unit/limits.tcl')
-rw-r--r-- | tests/unit/limits.tcl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/unit/limits.tcl b/tests/unit/limits.tcl new file mode 100644 index 000000000..9988983fa --- /dev/null +++ b/tests/unit/limits.tcl @@ -0,0 +1,13 @@ +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*} +} |