Skip to content

Commit

Permalink
Update api/test/round-tracker.test.js
Browse files Browse the repository at this point in the history
Co-authored-by: Miroslav Bajtoš <oss@bajtos.net>
  • Loading branch information
juliangruber and bajtos authored Oct 21, 2024
1 parent 498db6e commit 2054972
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions api/test/round-tracker.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,11 @@ describe('Round Tracker', () => {
[sparkRoundNumber]
)
const expectedRetrievalTasksCount = Math.floor(
Number(BigInt(BASELINE_TASKS_PER_NODE) *
BigInt(TASKS_EXECUTED_PER_ROUND) /
BigInt(TASKS_EXECUTED_PER_ROUND * measurementsFactor)) *
Number(
BigInt(BASELINE_TASKS_PER_NODE) *
BigInt(TASKS_EXECUTED_PER_ROUND) /
BigInt(TASKS_EXECUTED_PER_ROUND * measurementsFactor)
) *
ROUND_TASKS_TO_NODE_TASKS_RATIO
)
assert.strictEqual(retrievalTasks.length, expectedRetrievalTasksCount)
Expand Down

0 comments on commit 2054972

Please sign in to comment.