1
0
mirror of https://github.com/fluencelabs/redis synced 2025-06-27 16:01:32 +00:00
Files
.github
deps
src
tests
assets
cluster
helpers
integration
modules
sentinel
support
tmp
unit
moduleapi
type
acl.tcl
aofrw.tcl
auth.tcl
bitfield.tcl
bitops.tcl
dump.tcl
expire.tcl
geo.tcl
hyperloglog.tcl
introspection-2.tcl
introspection.tcl
keyspace.tcl
latency-monitor.tcl
lazyfree.tcl
limits.tcl
maxmemory.tcl
memefficiency.tcl
multi.tcl
obuf-limits.tcl
other.tcl
pendingquerybuf.tcl
printver.tcl
protocol.tcl
pubsub.tcl
quit.tcl
scan.tcl
scripting.tcl
slowlog.tcl
sort.tcl
tls.tcl
wait.tcl
instances.tcl
test_helper.tcl
utils
.gitignore
00-RELEASENOTES
BUGS
CONTRIBUTING
COPYING
INSTALL
MANIFESTO
Makefile
README.md
TLS.md
redis.conf
runtest
runtest-cluster
runtest-moduleapi
runtest-sentinel
sentinel.conf
redis/tests/unit/limits.tcl

22 lines
550 B
Tcl
Raw Normal View History

2012-04-08 11:16:40 +02:00
start_server {tags {"limits"} overrides {maxclients 10}} {
if {$::tls} {
set expected_code "*I/O error*"
} else {
set expected_code "*ERR max*reached*"
}
2012-04-08 11:16:40 +02:00
test {Check if maxclients works refusing connections} {
set c 0
catch {
while {$c < 50} {
2012-04-08 11:16:40 +02:00
incr c
2012-04-18 11:34:18 +02:00
set rd [redis_deferring_client]
$rd ping
$rd read
after 100
2012-04-08 11:16:40 +02:00
}
} e
assert {$c > 8 && $c <= 10}
set e
} $expected_code
2012-04-08 11:16:40 +02:00
}