2015-12-28 9 views
8

Sto scrivendo test per angularjs in gelsomino e utilizzo karma come test runner. Prima, tutto andava bene, ma improvvisamente si è verificato [RangeError: Wrong length!]. Non so nemmeno come eseguire il debug dove si è verificato. Si prega di aiutare ..Perché Karma mostra errore di intervallo?

> 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) 

risposta

12

Sembra che questo è un bug nella sua ultima versione karma (0.13.16). Controllare questo problema: https://github.com/karma-runner/karma/issues/1768.

Se è stato aggiornato a [email protected] e il reporter coverage è abilitato, si verificherà questo problema.

In questo momento il problema non è risolto, quindi è possibile eseguire il downgrade a [email protected] o disabilitare il reporter coverage. Quando il problema è risolto, probabilmente verrà rilasciata una nuova versione di patch.

+0

Grazie mille a uomo –

Problemi correlati