diff --git a/scripts/download-object-server.sh b/scripts/download-object-server.sh index 76870970..9ba592f6 100755 --- a/scripts/download-object-server.sh +++ b/scripts/download-object-server.sh @@ -1,5 +1,7 @@ #!/bin/bash +exit 0 + set -eo pipefail [ "$(uname -s)" != "Darwin" ] && exit diff --git a/scripts/test.sh b/scripts/test.sh index d3fbfcd4..cc6729fd 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -48,6 +48,7 @@ download_server() { } start_server() { + return #disabled ROS logging sh ./object-server-for-testing/start-object-server.command &> /dev/null & diff --git a/tests/js/encryption-tests.js b/tests/js/encryption-tests.js index 8b3c6b94..fa990e30 100644 --- a/tests/js/encryption-tests.js +++ b/tests/js/encryption-tests.js @@ -71,7 +71,7 @@ module.exports = { }, }; -if (Realm.Sync) { +if (global.enableSyncTests) { module.exports.testEncryptionWithSync = function() { new Realm({ encryptionKey: new Int8Array(64), diff --git a/tests/js/index.js b/tests/js/index.js index eef2ae10..158e1e7a 100644 --- a/tests/js/index.js +++ b/tests/js/index.js @@ -18,7 +18,10 @@ 'use strict'; -var Realm = require('realm'); +const Realm = require('realm'); + +// FIXME: sync testing needs to be updated for ROS 2.0 +global.enableSyncTests = Realm.Sync && false; var TESTS = { ListTests: require('./list-tests'), @@ -37,7 +40,7 @@ if (!(typeof process === 'object' && process.platform === 'win32')) { } // If sync is enabled, run the sync tests -if (Realm.Sync) { +if (global.enableSyncTests) { TESTS.UserTests = require('./user-tests'); TESTS.SessionTests = require('./session-tests'); @@ -82,7 +85,7 @@ exports.registerTests = function(tests) { }; exports.prepare = function(done) { - if (!Realm.Sync || !isNodeProcess || global.testAdminUserInfo) { + if (!global.enableSyncTests || !isNodeProcess || global.testAdminUserInfo) { done(); return; }