Skip to content

Commit

Permalink
test: Add unique IDs to mock nodes in ProblemNodeHandler tests (#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
S0naliThakur authored Jan 6, 2025
1 parent 500e732 commit 30f14f8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/unit/src/p2p/ProblemNodeHandler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,16 +179,19 @@ describe('ProblemNodeHandler', () => {
// Create nodes with different refute percentages
const node1: Node = {
...baseMockNode,
id: 'node1',
refuteCycles: new Set([2, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100]), // 11% refute rate
}

const node2: Node = {
...baseMockNode,
id: 'node2',
refuteCycles: new Set([90, 92, 94, 96, 98, 100]), // 6% refute rate
}

const node3: Node = {
...baseMockNode,
id: 'node3',
refuteCycles: new Set([98, 99, 100]), // 3% refute rate but 3 consecutive
}

Expand Down

0 comments on commit 30f14f8

Please sign in to comment.