From d2febaa86dcd981772d9b6059bca2780eea99d84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kr=C3=A6n=20Hansen?= Date: Mon, 14 Aug 2017 11:56:19 +0200 Subject: [PATCH] Run the GarbageCollectionTests only in an Electron process --- tests/shared/js/index.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/shared/js/index.js b/tests/shared/js/index.js index adc77a01..bdc1be98 100644 --- a/tests/shared/js/index.js +++ b/tests/shared/js/index.js @@ -27,8 +27,7 @@ var TESTS = { RealmTests: require('./realm-tests'), ResultsTests: require('./results-tests'), QueryTests: require('./query-tests'), - MigrationTests: require('./migration-tests'), - GarbageCollectionTests: require('./garbage-collection'), + MigrationTests: require('./migration-tests') }; // encryption is not supported on windows @@ -52,6 +51,13 @@ if (isNodeProcess) { console.log("Skipping the AsyncTests"); } +const isElectronProcess = !!process.versions.electron; +if (isElectronProcess) { + TESTS.GarbageCollectionTests = require('./garbage-collection'); +} else { + console.log("Skipping the Electron specific GarbageCollectionTests"); +} + var SPECIAL_METHODS = { beforeEach: true, afterEach: true,