diff options
author | Benjamin Berg <bberg@redhat.com> | 2021-07-21 10:10:05 +0200 |
---|---|---|
committer | Benjamin Berg <bberg@redhat.com> | 2021-07-22 14:24:36 +0200 |
commit | edd4e2d8ac184f8024870e4647e62212e570c448 (patch) | |
tree | e27c6789d639ee41f9a7862be137b424ac3ba407 /plugins/xsettings | |
parent | cc675cafa1d8e8397f8f269ec82d2a362c72a100 (diff) | |
download | gnome-settings-daemon-edd4e2d8ac184f8024870e4647e62212e570c448.tar.gz |
tests: Sync GSettings after modifying them
Otherwise we have few guarantees about how long it takes for the
settings to be applied.
Diffstat (limited to 'plugins/xsettings')
-rwxr-xr-x | plugins/xsettings/test.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/xsettings/test.py b/plugins/xsettings/test.py index 367f5212..79d5a87f 100755 --- a/plugins/xsettings/test.py +++ b/plugins/xsettings/test.py @@ -85,6 +85,7 @@ class XsettingsPluginTest(gsdtestcase.GSDTestCase): os.path.join(modules_dir, 'pk-gtk-module.desktop')) self.settings_sound = Gio.Settings.new('org.gnome.desktop.sound') + Gio.Settings.sync() env = os.environ.copy() self.plugin_log = OutputChecker() @@ -147,6 +148,7 @@ class XsettingsPluginTest(gsdtestcase.GSDTestCase): def test_gtk_modules(self): # Turn off event sounds self.settings_sound['event-sounds'] = False + Gio.Settings.sync() time.sleep(2) # Verify that only the PackageKit plugin is enabled @@ -155,6 +157,7 @@ class XsettingsPluginTest(gsdtestcase.GSDTestCase): # Turn on sounds self.settings_sound['event-sounds'] = True + Gio.Settings.sync() time.sleep(2) # Check that both PK and canberra plugin are enabled |