diff options
author | Gusted <postmaster@gusted.xyz> | 2024-11-14 11:18:48 +0100 |
---|---|---|
committer | Gusted <postmaster@gusted.xyz> | 2024-11-14 12:41:11 +0100 |
commit | 75a8b839465f81526af22d83eb60bc40ae5096fb (patch) | |
tree | 912ce45546e8cf1d50c6c43616f1650c1f835509 /tests/sqlite.ini.tmpl | |
parent | Merge pull request 'chore(i18n): allow datnes nosaukums for filename (Latvian... (diff) | |
download | forgejo-75a8b839465f81526af22d83eb60bc40ae5096fb.tar.xz forgejo-75a8b839465f81526af22d83eb60bc40ae5096fb.zip |
chore: improve slow tests
- Optimize generting random files.
- Reduce big file of 128MiB to 32MiB (git was never made for large files
anyways, but simply tests that it works).
- Reduce looped git operations from 100 iterations to 10.
- Add extra print statements to know what a slow test is doing, this
also helps to see if a particular piece of code in a slow test is the
culprit or if the test is just very extensive.
- Set `[ui.notification].EVENT_SOURCE_UPDATE_TIME` to 1s to speed up
`TestEventSourceManagerRun`.
- Sneaked in some general test improvements.
Diffstat (limited to 'tests/sqlite.ini.tmpl')
-rw-r--r-- | tests/sqlite.ini.tmpl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/sqlite.ini.tmpl b/tests/sqlite.ini.tmpl index 51234e3c8f..9229b62265 100644 --- a/tests/sqlite.ini.tmpl +++ b/tests/sqlite.ini.tmpl @@ -113,3 +113,6 @@ RENDER_CONTENT_MODE=sanitized [actions] ENABLED = true + +[ui.notification] +EVENT_SOURCE_UPDATE_TIME = 1s |