Skip to content

Commit

Permalink
tests(peek) improve ttl tests stability
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaultcha committed Jan 30, 2024
1 parent d4e4a51 commit 4af4ce9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions t/03-peek.t
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ ttl: nil
=== TEST 3: peek() returns the remaining ttl if a key has been fetched before
--- main_config
timer_resolution 10ms;
--- config
location /t {
content_by_lua_block {
Expand Down Expand Up @@ -119,6 +121,8 @@ ttl: 18
=== TEST 4: peek() returns a negative ttl when a key expired
--- main_config
timer_resolution 10ms;
--- config
location /t {
content_by_lua_block {
Expand Down Expand Up @@ -157,6 +161,8 @@ ttl: -2
=== TEST 5: peek() returns remaining ttl if shm_miss is specified
--- main_config
timer_resolution 10ms;
--- config
location /t {
content_by_lua_block {
Expand Down

0 comments on commit 4af4ce9

Please sign in to comment.