web3 在测试的断言部分,我使用它们来检查是否已将有效信息写入区块链。
web3
Mocha hangs after execution when connecting with Mongoose ).
我没找到 disconnect 或类似 不过,有没有人有过类似的经验?
disconnect
有人指着我说 --exit 标记您可以传递到mocha,并且它在所有测试运行完毕后终止进程,这可能是一个很好的解决方案。
--exit