testing - 如何使用 Velocity 修复此 websocket 连接错误?

标签 testing meteor jasmine cucumber meteor-velocity

我已经在全新的项目中尝试了 cucumber 和 Jasmine ,但我所有的测试都失败了。当我运行时:

$ meteor --test

我得到:

stream error Network error: ws://localhost:3000/websocket: connect ECONNREFUSED

此失败来自使用 xolvio:cucumber 包的新应用程序。

当我查看镜像日志时,它以:

[chimp] Finished running async processes with errors
stream error Network error: ws://localhost:3000/websocket: connect ECONNREFUSED
stream error Network error: ws://localhost:3000/websocket: connect ECONNREFUSED
Parent process ( 20797 ) is dead! Exiting cucumber

那么,这是否是我的某种系统错误?我有最新的 meteor :1.1.0.2

我也意识到这个错误曾经是一个现在被认为已修复的旧错误 in the meteor-cucumber repo .

有什么想法吗?

最佳答案

这不是错误,它实际上是一个已知问题,不应影响您的规范运行。

当您运行 meteor --test 时,它将启动一个主应用程序和一个供 Cucumber 运行的镜像。

当主应用程序关闭并且镜像不再能够通过 websockets 访问主应用程序时,会出现该消息。这是一条无害的消息。

关于testing - 如何使用 Velocity 修复此 websocket 连接错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31493957/

相关文章:

java - 如何使用 surefire 插件在自定义文件夹结构中运行测试

r - 使用蒙特卡洛方法模拟卡方检验的 p 值

linux - 创建一个虚假的现实 : Testing Using Virtual Block Devices

unix - 如何在 Heroku 中运行 Meteor shell?

javascript - multiCapabilities 和 jasmine 重点测试

javascript - Jasmine expect toThrow 不传也不接

angularjs - 当我们使用 E2E 测试在下拉 Protractor 中有多个包含相同文本的选项时,如何选择任何特定选项

unit-testing - 为什么Spock Framework推荐使用SUS,但是在任何例子中都没有这个缩写?

css - Meteor Bootstrap 节点模块覆盖我自己的 css

meteor - 如何在 Meteor 中保持用户登录直到浏览器关闭?