Skip to content

fix(test): Remove locking and fix prometheus test

Mario Oenning requested to merge moson/aurweb:fix-semaphore-error into master

All tests within a file run in the same worker and out test DB names are unique per file as well.
We don't really need a locking mechanism here.

Same is valid for the test-emails. The only potential issue is that it might try to create the test-emails dir multiple times (at the very same time) and thus run into an error. However, that can be covered by specifying exist_ok=True with os.makedirs such that those errors are ignored.

Signed-off-by: moson moson@archlinux.org

Edited by Mario Oenning

Merge request reports