我正在测试使用node-unit编码的流。第一次测试有效,但第二次测试失败:
FAILURES: Undone tests (or their setups/teardowns):
- testVideo
我认为这是因为异步正在发生......不确定。这就是我正在做的事情:
rs
.pipe(theStreamBeingTested)
.pipe(through(captureActualResult, assertCorrectnessOfResult(test, expected)));
在assertCorrectnessOfResult中的我做断言然后调用:test.done
但是,当我导出多个测试时,这似乎不起作用......