【发布时间】:2015-10-29 23:11:55
【问题描述】:
使用 Emberfire (Firebase) 适配器时,我收到各种错误,表明测试没有等待数据操作完成。
例如:Error: Assertion Failed: You can only unload a record which is not inFlight. 当我尝试创建、检查然后删除记录时
还有:
FIREBASE WARNING: Exception was thrown by user callback. Error: Called stop() outside of a test context at Object.extend.stop (http://localhost:4200/assets/test-support.js:3000:10) at exports.default._emberTestingAdaptersAdapter.default.extend.asyncStart
在手动浏览我的应用程序时不会发生这些错误,使用标准 ember 数据适配器时也不会发生这些错误。
是什么导致了这些错误以及如何避免它们?
编辑:虽然症状有点不同(没有抛出错误),但听起来this problem 可能与我看到的错误有相同的根本原因。
【问题讨论】:
标签: ember.js ember-data emberfire