我正在为茉莉花中的angularjs编写测试用例,并使用业力作为测试运行器.之前,一切都运行正常,但突然发现[RangeError:错误的长度!].我甚至不知道如何调试它发生的地方.请帮忙..
> Executed 81 of 85 SUCCESS (0 secs / 1.835 secs) 28 12 2015 > 17:07:32.063:ERROR [karma]: [RangeError: Wrong length!] RangeError: > Wrong length! > at RangeError (native) > at strictToLength (/home/knoldus/roobricks-datashape-ui/node_modules/core-js/modules/_typed-array.js:94:36) > at /home/knoldus/roobricks-datashape-ui/node_modules/core-js/modules/_typed-array.js:404:44 > at new Uint8Array (/home/knoldus/roobricks-datashape-ui/node_modules/core-js/modules/es6.typed.uint8-array.js:3:12) > at allocate (buffer.js:98:17) > at new Buffer (buffer.js:49:12) > at BufferPool.reset (/home/knoldus/roobricks-datashape-ui/node_modules/ws/lib/BufferPool.js:57:26) > at Receiver.endPacket (/home/knoldus/roobricks-datashape-ui/node_modules/ws/lib/Receiver.js:247:68) > at Receiver.opcodes.1.finish (/home/knoldus/roobricks-datashape-ui/node_modules/ws/lib/Receiver.js:483:12) > at Receiver.expectHandler (/home/knoldus/roobricks-datashape-ui/node_modules/ws/lib/Receiver.js:451:33) > at Receiver.add (/home/knoldus/roobricks-datashape-ui/node_modules/ws/lib/Receiver.js:95:24) > at Socket.realHandler (/home/knoldus/roobricks-datashape-ui/node_modules/ws/lib/WebSocket.js:800:20) > at emitOne (events.js:77:13) > at Socket.emit (events.js:169:7) > at readableAddChunk (_stream_readable.js:146:16) > at Socket.Readable.push (_stream_readable.js:110:10)
小智.. 12
看起来这是最新karma
版本(0.13.16
)中的错误.请查看此问题:https://github.com/karma-runner/karma/issues/1768.
如果您已更新到karma@0.13.16
并且coverage
启用了报告器,则会遇到此问题.
目前问题尚未解决,因此您可以降级karma@0.13.15
或禁用coverage
报告者.问题解决后,可能会发布新的补丁版本.
看起来这是最新karma
版本(0.13.16
)中的错误.请查看此问题:https://github.com/karma-runner/karma/issues/1768.
如果您已更新到karma@0.13.16
并且coverage
启用了报告器,则会遇到此问题.
目前问题尚未解决,因此您可以降级karma@0.13.15
或禁用coverage
报告者.问题解决后,可能会发布新的补丁版本.