Skip running tests against ROS until they are updated for 2.0

This commit is contained in:
Thomas Goyne 2017-09-20 11:06:09 -07:00
parent 432c4323dd
commit 858fa7c6ff
4 changed files with 10 additions and 4 deletions

View File

@ -1,5 +1,7 @@
#!/bin/bash
exit 0
set -eo pipefail
[ "$(uname -s)" != "Darwin" ] && exit

View File

@ -46,6 +46,7 @@ download_server() {
}
start_server() {
return
#disabled ROS logging
./object-server-for-testing/start-object-server.command &> /dev/null &

View File

@ -71,7 +71,7 @@ module.exports = {
},
};
if (Realm.Sync) {
if (global.enableSyncTests) {
module.exports.testEncryptionWithSync = function() {
new Realm({
encryptionKey: new Int8Array(64),

View File

@ -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;
}