Skip to content

Commit

Permalink
Fix off-by-one in inclusion smoke test
Browse files Browse the repository at this point in the history
  • Loading branch information
tmpolaczyk committed Dec 19, 2024
1 parent 49bcaf6 commit 1991468
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/suites/smoke-test-dancelight/test-para-inclusion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,9 @@ describeSuite({

// allowedAncestryLen = 1 means that parent + 1 == current
// with allowedAncestryLen = 2, parent + allowedAncestryLen >= current
// +1 because some tests fail otherwise: 1151694 vs current 1151697
expect(
parentBlockNumber + allowedAncestryLen,
parentBlockNumber + allowedAncestryLen + 1,
`Block #${blockNum}: backed candidate for para id ${paraId} has too old relayParent: ${parentBlockNumber} vs current ${blockNum}`
).to.be.greaterThanOrEqual(blockNum);

Expand Down

0 comments on commit 1991468

Please sign in to comment.