summaryrefslogtreecommitdiff
path: root/tests/unit/limits.tcl
blob: b37ea9b0f5b37efef1c47429d204b38d595e7202 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
start_server {tags {"limits"} overrides {maxclients 10}} {
    test {Check if maxclients works refusing connections} {
        set c 0
        catch {
            while {$c < 50} {
                incr c
                set rd [redis_deferring_client]
                $rd ping
                $rd read
                after 100
            }
        } e
        assert {$c > 8 && $c <= 10}
        set e
    } {*ERR max*reached*}
}