mirror of
https://github.com/ArcaneChat/core.git
synced 2026-07-03 14:05:33 +02:00
cda2fc4fea
Now I know why the tests failed before 48c58a7 (i.e. after c923670) but not on master (i.e. before c923670): because of a bug, scan_folders() set the configured_sentbox to None if it was set before. If it was None before, it restored the correct value. On master, there was another bug that led to two runs of scan_folders() being started at the same time. Therefore, the first run set configured_sentbox to None, the second one restored the correct value. c923670 fixed the latter bug, so that only one run of scan_folders() was started. Therefore, configured_sentbox stayed None incorrectly and test_fetch_existing() failed. 48c58a7 fixed the former bug. This commit adds checks to test_fetch_existing(), so that it definitely checks for the former bug.