summaryrefslogtreecommitdiffstats
path: root/src/cache.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2023-08-23 11:18:53 +0200
committerPhil Sutter <phil@nwl.cc>2023-08-23 18:54:04 +0200
commit255ec36a115257f0f63304b33423d9e268af998b (patch)
tree9f8612d6a2bc2de430b181a9cfae94eebd67197c /src/cache.c
parent7b671ff19a43a20755a4ee34ed39bd4d10267b56 (diff)
tests: shell: Stabilize sets/reset_command_0 test
Timeout/expiry value testing based on seconds is way too fragile, especially with slow debug kernels. Rewrite the unit to test minute-based values. This means it is no longer feasible to wait for values to sufficiently change, so instead specify an 'expires' value when creating the ruleset and drop the 'sleep' call. While being at it: - Combine 'get element' and 'reset element' calls into one, assert the relevant (sanitized) line appears twice in output instead of comparing with 'diff'. - Turn comments into 'echo' calls to help debugging if the test fails. Reported-by: Florian Westphal <fw@strlen.de> Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'src/cache.c')
0 files changed, 0 insertions, 0 deletions