Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 053db0e

Browse files
committedMar 20, 2025··
Actual fix for the tests.
1 parent 5d1064b commit 053db0e

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed
 

‎packages/service-core-tests/src/tests/register-data-storage-tests.ts

+6-12
Original file line numberDiff line numberDiff line change
@@ -1676,16 +1676,13 @@ bucket_definitions:
16761676
});
16771677

16781678
let result2 = await iter.next();
1679-
if (result2.value?.base?.lsn == '5/0') {
1680-
// Events could arrive in a different order in some cases - this caters for it
1681-
result2 = await iter.next();
1682-
}
16831679
expect(result2).toMatchObject({
16841680
done: false,
16851681
value: {
16861682
base: {
1687-
checkpoint: 0n,
1688-
lsn: '6/0'
1683+
checkpoint: 0n
1684+
// can be 5/0 or 6/0 - actual value not relevant for custom write checkpoints
1685+
// lsn: '6/0'
16891686
},
16901687
writeCheckpoint: 6n
16911688
}
@@ -1702,16 +1699,13 @@ bucket_definitions:
17021699
});
17031700

17041701
let result3 = await iter.next();
1705-
if (result3.value?.base?.lsn == '6/0') {
1706-
// Events could arrive in a different order in some cases - this caters for it
1707-
result3 = await iter.next();
1708-
}
17091702
expect(result3).toMatchObject({
17101703
done: false,
17111704
value: {
17121705
base: {
1713-
checkpoint: 0n,
1714-
lsn: '7/0'
1706+
checkpoint: 0n
1707+
// can be 5/0, 6/0 or 7/0 - actual value not relevant for custom write checkpoints
1708+
// lsn: '7/0'
17151709
},
17161710
writeCheckpoint: 7n
17171711
}

0 commit comments

Comments
 (0)
Please sign in to comment.