]> source.dussan.org Git - gitea.git/commit
improve unit test for caching (#26185)
authorEarl Warren <109468362+earl-warren@users.noreply.github.com>
Thu, 27 Jul 2023 20:24:40 +0000 (22:24 +0200)
committerGitHub <noreply@github.com>
Thu, 27 Jul 2023 20:24:40 +0000 (22:24 +0200)
commit494ee56de28a52568413dfa30b5ddd99411fc2fc
treed21c582c1ad69c73446d40385ea3116d6bc3adf5
parenteaea530d6bc84b23e6ff14ff8c2a74aa3b67ecd0
improve unit test for caching (#26185)

- Configure `setting.CacheService.TTL` which will force the code to go
trough the caching mechanism.
- Remove the TODO and uncomment the test code.

(cherry picked from commit a201f2f1896c1a086f3e37f86b1306d44c07f2e4)

Refs: https://codeberg.org/forgejo/forgejo/pulls/974

---------

Co-authored-by: Gusted <postmaster@gusted.xyz>
modules/cache/cache_test.go