問題タブ [vows]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
node.js - server.close() が Vow ティアダウンで機能しない
ありふれた Express アプリ用にいくつかの Vows ベースのテストを作成しようとしています。
テストソースは次のとおりです。
そして、ここにありますstart-app.js
:
app.js
で作成された通常の Express.js アプリをエクスポートしexpress()
ます。
問題は、テストを実行するたびにtopic.close()
、teardown 関数で動作せず、テストが成功した後に永久にハングすることです。私はウェブを検索して、たくさんのconsole.log
s を追加しようとしましたが、すべて役に立ちませんでした。
Node.js 4.2.0 の Windows x64 ビルドを使用assert@1.3.0
してvows@0.8.1
います。
テストのハングを停止する方法はありますか?