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

How do I fix this websocket connection error with Velocity?

我已经在全新的项目中尝试了黄瓜和茉莉花,但我所有的测试都失败了。当我 运行:

$ 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

那么,这是我的系统错误吗?我有最新的流星:1.1.0.2

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

有什么想法吗?

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

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

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