don't run a sync test when sync tested are not enabled
This commit is contained in:
parent
4f1d5e36a1
commit
3fd06badf6
|
@ -44,6 +44,10 @@ module.exports = {
|
|||
},
|
||||
|
||||
testSynced: function() {
|
||||
if (!global.enableSyncTests) {
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
return Realm.Sync.User.register('http://localhost:9080', uuid(), 'password').then(user => {
|
||||
const config = { sync: { user, url: 'realm://localhost:9080/~/myrealm' },
|
||||
schema: [{ name: 'IntegerPrimaryKey', properties: { int: 'int?' }, primaryKey: 'int' },
|
||||
|
|
Loading…
Reference in New Issue