Skip to content

Commit

Permalink
Calculate offset correctly based on test case size
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelBCarter committed Dec 21, 2024
1 parent 362d3ea commit 86f5542
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"--inspect-brk",
"--no-file-parallelism",
"--testTimeout=120000",
"packages/modules/packages/diviner/packages/addresschain/packages/memory/src/spec/MemoryDiviner.spec.ts"
"packages/modules/packages/diviner/packages/indexing/packages/temporal/packages/memory/src/StateToIndexCandidateDiviner/spec/Diviner.spec.ts"
],
"sourceMaps": true,
"resolveSourceMapLocations": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ describe('TemporalStateToIndexCandidateDiviner', () => {
describe('with previous state', () => {
it.each([1, 2, 3])('returns next state and batch results', async (batch) => {
const all = (await archivist.all()).sort(PayloadBuilder.compareStorageMeta)
const batchOffset = all.at((2 * batch) - 1)
const batchOffset = all.at((3 * batch) - 1)
expect(batchOffset).toBeDefined()
// Test across all offsets
const cursor = assertEx(batchOffset)._sequence
Expand Down

0 comments on commit 86f5542

Please sign in to comment.