Skip to content

Commit

Permalink
Fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
torztomasz committed Jul 26, 2023
1 parent ba3bbbb commit 01a13c0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/backend/src/model/BlockRange.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@ describe(BlockRange.name, () => {
blocks.push({ number: i, hash: Hash256.fake(i.toString()) })
}

new BlockRange(blocks)
const blockRange = new BlockRange(blocks)

expect(blockRange.length).toEqual(1_000_000)
expect(blockRange.start).toEqual(0)
expect(blockRange.end).toEqual(1_000_000)
})
})

Expand Down

0 comments on commit 01a13c0

Please sign in to comment.