2017-04-01 55 views
0

我做了一些集成測試我的境界,但是,當我在我的CI運行我收到此錯誤信息:Realm.Sync is not available. Note that the developer edition of the Node.JS SDK for Realm does not include sync on Linux.禁用Realm.Sync集成測試

我明白了什麼消息稱,我並不需要Realm Sync在我的集成測試中。如何禁用CI環境中的Realm.sync?

回答

0

從技術上講,Realm.sync在CI上禁用 - 因爲它在Linux上運行。您可以保護代碼中依賴它的某些部分,並確保您不會在CI機器上運行訪問該代碼的代碼。

+0

其實,我沒有使用'Realm.sync'。有沒有辦法初始化Realm對象禁用所有同步行爲? – eduardomoroni