Skip to content

Update Tracker Architecture for Multi-Peer Connections #13

Update Tracker Architecture for Multi-Peer Connections

Update Tracker Architecture for Multi-Peer Connections #13

Triggered via pull request June 19, 2024 13:50
Status Failure
Total duration 34s
Artifacts

pr.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 1 warning
test/announce.test.ts > announce > should add peers to swarms on announce: test/announce.test.ts#L55
AssertionError: expected [ { id: '0', …(3) } ] to be a superset of [ PeerContextClass{ …(3) } ] - Expected + Received Array [ - PeerContextClass { - "peerIdsOnSocket": Set { - "0", - }, + Object { + "id": "0", + "lastAccessed": 737.558878, "sendMessage": [Function anonymous], - "swarm1": Swarm { - "completedCount": 0, - "infoHash": "swarm1", - }, + "ws": undefined, }, ] ❯ test/announce.test.ts:55:60
test/announce.test.ts > announce > should send offers to peers in a swarm: lib/fast-tracker.ts#L160
TypeError: Cannot read properties of null (reading 'add') ❯ FastTracker.processAnnounce lib/fast-tracker.ts:160:26 ❯ FastTracker.processMessage lib/fast-tracker.ts:83:14 ❯ test/announce.test.ts:181:13
test/announce.test.ts > announce > should process answer messages: lib/fast-tracker.ts#L160
TypeError: Cannot read properties of null (reading 'add') ❯ FastTracker.processAnnounce lib/fast-tracker.ts:160:26 ❯ FastTracker.processMessage lib/fast-tracker.ts:83:14 ❯ test/announce.test.ts:464:13
test/simulation.test.ts > simulation > should pass random simulations: test/simulation.test.ts#L111
AssertionError: expected undefined to exist ❯ test/simulation.test.ts:111:26
build-pr
Process completed with exit code 1.
build-pr
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.