From 78a733bae62f8af15f0771d7efde55473f295e46 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Wed, 16 Aug 2023 18:46:54 -0400 Subject: [PATCH 1/3] status/keyboard: Add a catch around reload call Now that system input settings can get used in the user session they're getting seen by the tests and the tests are complaining: Unhandled promise rejection. To suppress this warning, add an error handler to your promise chain with .catch() or a try-catch block around your await expression. This commit adds the catch it's asking for. --- js/ui/status/keyboard.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/ui/status/keyboard.js b/js/ui/status/keyboard.js index cfc0a01f6b..4ef2f355d3 100644 --- a/js/ui/status/keyboard.js +++ b/js/ui/status/keyboard.js @@ -204,7 +204,9 @@ class InputSourceSystemSettings extends InputSourceSettings { this._options = ''; this._model = ''; - this._reload(); + this._reload().catch(error => { + logError(error, 'Could not reload system input settings'); + }); Gio.DBus.system.signal_subscribe(this._BUS_NAME, this._BUS_PROPS_IFACE, -- 2.43.1