[gjs: 1/10] tests: Use GLib.SOURCE_CONTINUE in idle functions
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 1/10] tests: Use GLib.SOURCE_CONTINUE in idle functions
- Date: Fri, 4 Feb 2022 05:31:03 +0000 (UTC)
commit 418897825db64a87d373201a61f71939dbe96c9c
Author: Philip Chimento <philip chimento gmail com>
Date: Sun Jan 16 15:43:33 2022 -0800
tests: Use GLib.SOURCE_CONTINUE in idle functions
This is for clarity, so that readers don't have to look up whether
"continue" was true or false.
installed-tests/js/testGObjectDestructionAccess.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/installed-tests/js/testGObjectDestructionAccess.js
b/installed-tests/js/testGObjectDestructionAccess.js
index 8019a6723..889cebd77 100644
--- a/installed-tests/js/testGObjectDestructionAccess.js
+++ b/installed-tests/js/testGObjectDestructionAccess.js
@@ -714,13 +714,13 @@ describe('GObject with toggle references', function () {
threads.forEach(th => th.join());
threads = [];
}
- return true;
+ return GLib.SOURCE_CONTINUE;
}));
const loop = new GLib.MainLoop(null, false);
ids.push(GLib.idle_add(GLib.PRIORITY_DEFAULT, () => {
expect(GjsTestTools.get_weak()).toEqual(file);
- return true;
+ return GLib.SOURCE_CONTINUE;
}));
// We must not timeout due to deadlock #404 and finally not crash per #297
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]