Skip to content

Update Tracker Architecture for Multi-Peer Connections #14

Update Tracker Architecture for Multi-Peer Connections

Update Tracker Architecture for Multi-Peer Connections #14

Triggered via pull request June 20, 2024 13:25
Status Failure
Total duration 30s
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 [ { peerId: '0', …(4) } ] to be a superset of [ PeerContextClass{ …(2) } ] - Expected + Received Array [ - PeerContextClass { - "0": Object { + Object { "lastAccessed": 703.934974, "peerId": "0", "sendMessage": [Function anonymous], - "socketContext": [Circular], - "swarmInfoHash": "swarm1", - }, + "socketContext": PeerContextClass { + "0": [Circular], "sendMessage": [Function anonymous], + }, + "swarmInfoHash": "swarm1", }, ] ❯ test/announce.test.ts:55:60
test/announce.test.ts > announce > should send offers to peers in a swarm: lib/fast-tracker.ts#L181
TypeError: Cannot read properties of null (reading 'peerId') ❯ FastTracker.processAnnounce lib/fast-tracker.ts:181:28 ❯ FastTracker.processMessage lib/fast-tracker.ts:124:14 ❯ test/announce.test.ts:181:13
test/announce.test.ts > announce > should process answer messages: lib/fast-tracker.ts#L181
TypeError: Cannot read properties of null (reading 'peerId') ❯ FastTracker.processAnnounce lib/fast-tracker.ts:181:28 ❯ FastTracker.processMessage lib/fast-tracker.ts:124:14 ❯ test/announce.test.ts:464:13
test/simulation.test.ts > simulation > should pass random simulations: test/simulation.test.ts#L82
TypeError: tracker.disconnectPeer is not a function ❯ doIteration test/simulation.test.ts:82:19 ❯ test/simulation.test.ts:104:7
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/.