Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/454.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 测试用例被调用两次,导致:Uncaught Error:read ECONNRESET和Error:done()被多次调用_Javascript_Unit Testing_Mocha.js_Assert_Should.js - Fatal编程技术网

Javascript 测试用例被调用两次,导致:Uncaught Error:read ECONNRESET和Error:done()被多次调用

Javascript 测试用例被调用两次,导致:Uncaught Error:read ECONNRESET和Error:done()被多次调用,javascript,unit-testing,mocha.js,assert,should.js,Javascript,Unit Testing,Mocha.js,Assert,Should.js,我正在尝试使用should.js运行一些测试用例,下面是这些测试用例的日志: 在日志中,您可以看到完全相同的测试用例被调用了两次,导致了这些错误。 有人知道问题出在哪里吗

我正在尝试使用should.js运行一些测试用例,下面是这些测试用例的日志:

在日志中,您可以看到完全相同的测试用例被调用了两次,导致了这些错误。 有人知道问题出在哪里吗