gecko-dev/services/settings/test/unit
Gijs Kruitbosch 0377d8eece Bug 1598924 - make remote settings handle shutdown gracefully, r=leplatrem,asuth
By and large, this change accomplishes two things:
1. Run db.close() in finally clauses so that even if db access fails, we close
   our connections. It also tries to avoid waiting on other, non-DB operations
   before calling close, to avoid the DB connection needlessly hanging around.
2. Intercept all async database operations from the remote settings client to
   kinto and ensuring they complete before the end of `profile-before-change`.
   Any operations started after Services.startup.isShuttingDown (so after
   quit/restart is initiated by the user) will throw. Operations started
   beforehand are put in a set of operations, and remove themselves once
   complete. We AsyncShutdown block on that set of operations completing.

Differential Revision: https://phabricator.services.mozilla.com/D66995

--HG--
extra : moz-landing-system : lando
2020-03-24 14:55:41 +00:00
..
test_attachments_downloader Bug 1501214 - Reusable helper to download Remote Settings attachments r=nanj,glasserc,Gijs 2019-05-10 22:57:40 +00:00
test_remote_settings_signatures Bug 1546912 - Dedicated signature tests for Remote Settings r=glasserc 2019-05-13 17:04:26 +00:00
moz.build Bug 1546912 - Dedicated signature tests for Remote Settings r=glasserc 2019-05-13 17:04:26 +00:00
test_attachments_downloader.js Bug 1620185 - Remove usage of .openCollection() r=glasserc 2020-03-17 20:20:46 +00:00
test_remote_settings.js Bug 1598924 - make remote settings handle shutdown gracefully, r=leplatrem,asuth 2020-03-24 14:55:41 +00:00
test_remote_settings_jexl_filters.js Bug 1620185 - Remove usage of .openCollection() r=glasserc 2020-03-17 20:20:46 +00:00
test_remote_settings_poll.js Bug 1616052 - Add low-level helpers to debug and test Remote Settings r=tarek,glasserc 2020-02-25 15:29:48 +00:00
test_remote_settings_signatures.js Bug 1620185 - Improve behaviour when signature is bad after retry r=glasserc 2020-03-17 20:24:01 +00:00
test_remote_settings_worker.js Bug 1620185 - Simplify CanonicalJSON of records r=glasserc 2020-03-17 20:22:32 +00:00
xpcshell.ini Bug 1546912 - Dedicated signature tests for Remote Settings r=glasserc 2019-05-13 17:04:26 +00:00