Rework rlpx-simulator.spec.ts tests / Fix devp2p/genesis/wallet Coverage Reporting #773
Annotations
5 errors
Run npm run coverage:
packages/devp2p/test/integration/rlpx-simulator.spec.ts#L98
AssertionError: peers queue should contain no peers: expected 1 to equal +0
- Expected
+ Received
- 0
+ 1
❯ test/integration/rlpx-simulator.spec.ts:98:18
This error originated in "test/integration/rlpx-simulator.spec.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "RLPX: test peer queue / refill connections". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
Run npm run coverage:
packages/devp2p/test/integration/rlpx-simulator.spec.ts#L70
AssertionError: should close with CLIENT_QUITTING disconnect reason: expected 11 to equal 8
- Expected
+ Received
- 8
+ 11
❯ EventEmitter.<anonymous> test/integration/rlpx-simulator.spec.ts:70:16
❯ EventEmitter.emit ../../node_modules/eventemitter3/index.js:183:35
❯ EventEmitter.<anonymous> src/rlpx/rlpx.ts:298:21
❯ EventEmitter.emit ../../node_modules/eventemitter3/index.js:182:35
❯ Peer._onSocketClose src/rlpx/peer.ts:661:38
❯ Object.onceWrapper node:events:634:26
❯ Socket.emit node:events:531:35
❯ TCP.<anonymous> node:net:339:12
This error originated in "test/integration/rlpx-simulator.spec.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "RLPX: test peer queue / refill connections". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
Run npm run coverage:
packages/devp2p/test/integration/util.ts#L136
TypeError: Cannot read properties of undefined (reading 'events')
❯ Module.twoPeerMsgExchange3 test/integration/util.ts:136:12
❯ test/integration/snap-simulator.spec.ts:26:10
|
Run npm run coverage:
packages/devp2p/test/integration/util.ts#L136
TypeError: Cannot read properties of undefined (reading 'events')
❯ Module.twoPeerMsgExchange3 test/integration/util.ts:136:12
❯ test/integration/snap-simulator.spec.ts:40:10
|
Run npm run coverage
Process completed with exit code 1.
|
Loading