Skip running tests against ROS until they are updated for 2.0
This commit is contained in:
parent
432c4323dd
commit
858fa7c6ff
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
|
|
||||||
[ "$(uname -s)" != "Darwin" ] && exit
|
[ "$(uname -s)" != "Darwin" ] && exit
|
||||||
|
|
|
@ -46,6 +46,7 @@ download_server() {
|
||||||
}
|
}
|
||||||
|
|
||||||
start_server() {
|
start_server() {
|
||||||
|
return
|
||||||
#disabled ROS logging
|
#disabled ROS logging
|
||||||
./object-server-for-testing/start-object-server.command &> /dev/null &
|
./object-server-for-testing/start-object-server.command &> /dev/null &
|
||||||
|
|
||||||
|
|
|
@ -71,7 +71,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
if (Realm.Sync) {
|
if (global.enableSyncTests) {
|
||||||
module.exports.testEncryptionWithSync = function() {
|
module.exports.testEncryptionWithSync = function() {
|
||||||
new Realm({
|
new Realm({
|
||||||
encryptionKey: new Int8Array(64),
|
encryptionKey: new Int8Array(64),
|
||||||
|
|
|
@ -18,7 +18,10 @@
|
||||||
|
|
||||||
'use strict';
|
'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 = {
|
var TESTS = {
|
||||||
ListTests: require('./list-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 sync is enabled, run the sync tests
|
||||||
if (Realm.Sync) {
|
if (global.enableSyncTests) {
|
||||||
TESTS.UserTests = require('./user-tests');
|
TESTS.UserTests = require('./user-tests');
|
||||||
TESTS.SessionTests = require('./session-tests');
|
TESTS.SessionTests = require('./session-tests');
|
||||||
|
|
||||||
|
@ -82,7 +85,7 @@ exports.registerTests = function(tests) {
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.prepare = function(done) {
|
exports.prepare = function(done) {
|
||||||
if (!Realm.Sync || !isNodeProcess || global.testAdminUserInfo) {
|
if (!global.enableSyncTests || !isNodeProcess || global.testAdminUserInfo) {
|
||||||
done();
|
done();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue