summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/webhelper/testTranslate.js4
-rw-r--r--test/webhelper/testWebActions.js4
2 files changed, 6 insertions, 2 deletions
diff --git a/test/webhelper/testTranslate.js b/test/webhelper/testTranslate.js
index 651ddf5..009efaf 100644
--- a/test/webhelper/testTranslate.js
+++ b/test/webhelper/testTranslate.js
@@ -40,7 +40,9 @@ let app;
function setUp() {
// Generate a unique ID for each app instance that we test
- let id_string = 'com.endlessm.webhelper.test' + GLib.get_real_time();
+ let fake_pid = GLib.random_int();
+ // FIXME In this version of GJS there is no Posix module, so fake the PID
+ let id_string = 'com.endlessm.webhelper.test' + GLib.get_real_time() + fake_pid;
app = new TestClass({
application_id: id_string
});
diff --git a/test/webhelper/testWebActions.js b/test/webhelper/testWebActions.js
index 0ecc235..8c790b2 100644
--- a/test/webhelper/testWebActions.js
+++ b/test/webhelper/testWebActions.js
@@ -37,7 +37,9 @@ let app;
function setUp() {
// Generate a unique ID for each app instance that we test
- let id_string = 'com.endlessm.webhelper.test' + GLib.get_real_time();
+ let fake_pid = GLib.random_int();
+ // FIXME In this version of GJS there is no Posix module, so fake the PID
+ let id_string = 'com.endlessm.webhelper.test' + GLib.get_real_time() + fake_pid;
app = new TestClass({
application_id: id_string
});