mirror of
https://github.com/chatmail/core.git
synced 2026-04-05 23:22:11 +03:00
Now I know why the tests failed before48c58a7(i.e. afterc923670) but not on master (i.e. beforec923670): 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.c923670fixed the latter bug, so that only one run of scan_folders() was started. Therefore, configured_sentbox stayed None incorrectly and test_fetch_existing() failed.48c58a7fixed the former bug. This commit adds checks to test_fetch_existing(), so that it definitely checks for the former bug.