File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -497,7 +497,7 @@ GET /test
497
497
498
498
=== TEST 15 : list removed: expired
499
499
-- - http_config
500
- lua_shared_dict dogs 1 m ;
500
+ lua_shared_dict dogs 900 k ;
501
501
-- - config
502
502
location = /test {
503
503
content_by_lua_block {
@@ -566,14 +566,15 @@ loop again, max matched: true
566
566
567
567
=== TEST 16 : list removed: forcibly
568
568
-- - http_config
569
- lua_shared_dict dogs 1 m ;
569
+ lua_shared_dict dogs 900 k ;
570
570
-- - config
571
571
location = /test {
572
572
content_by_lua_block {
573
573
local dogs = ngx. shared. dogs
574
574
575
- local max
576
- for i = 1 , 20000 do
575
+ local N = 200000
576
+ local max = 0
577
+ for i = 1 , N do
577
578
local ok , err, forcible = dogs: set(i, i)
578
579
if not ok or forcible then
579
580
max = i
@@ -592,7 +593,7 @@ loop again, max matched: true
592
593
593
594
ngx. say (" no one left: " , # keys)
594
595
595
- for i = 1 , 20000 do
596
+ for i = 1 , N do
596
597
local key = string. format(" %05d" , i)
597
598
598
599
local len, err = dogs: lpush(key , i)
You can’t perform that action at this time.
0 commit comments