运行 在 Meteor 演示应用程序上测试时出现超时错误

Timeout error when running tests on Meteor demo app

我在 Meteor 演示应用程序上尝试 运行 测试时遇到 Error: timeout of 2000ms exceeded. Ensure the done() callback is being called in this test 错误:https://github.com/meteor/todos (guide)

当我 运行 TEST_WATCH=1 meteor test --driver-package meteortesting:mocha 我得到以下失败的测试:

17 passing (4s)

1 failing

1) todos publications todos.inList sends no todos for a private list when not logged in:

Error: timeout of 2000ms exceeded.

Ensure the done() callback is being called in this test.

同样的错误发生在我正在开发的应用程序上,所以我无法运行任何集成测试。

我在待办事项应用程序中 运行ning Meteor 1.7.0.1,在 Ubuntu 18.04 中 mongodb 版本 3.6.8。

同一个项目 运行s 在我的 运行 同一个流星和 mongodb 版本的伙伴计算机上测试正常,但是 OSX.

setting this.timeout(15000) inside tests 什么都不做。还尝试了具有相同结果的 MOCHA_TIMEOUT 环境变量。就是不能修改2s超时

已将 meteortesting:mocha-core 更新到最新版本,现在可以识别 MOCHA_TIMEOUT,将其设置为 5s,现在可以使用了。