Skip to content

✅ Cover getCommittedOpVersion deterministically - #187

Merged
alecgibson merged 1 commit into
mainfrom
test-committed-op-version
Oct 22, 2026
Merged

alecgibson merged 1 commit into
mainfrom
test-committed-op-version

Conversation

@alecgibson

Copy link
Copy Markdown
Contributor

At the moment, Coveralls swings by 0.8% between runs of identical code: #186 only touches package.json, but still lost coverage.

The only test that reaches the found-op path of getCommittedOpVersion is sharedb's "does not fail when resubmitting a create op", and only when it wins a race: about once in 60 suite runs.

This change tests getCommittedOpVersion directly, including its bounded read from the earliest matching op.

🤖 Generated with Claude Code

Co-Authored-By: Claude noreply@anthropic.com

At the moment, Coveralls swings by 0.8% between runs of identical
code: #186 only touches `package.json`, but still lost coverage.

The only test that reaches the found-op path of `getCommittedOpVersion`
is sharedb's "does not fail when resubmitting a create op", and only
when it wins a race: about once in 60 suite runs.

This change tests `getCommittedOpVersion` directly, including its
bounded read from the earliest matching op.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 94.636% (+1.0%) from 93.683% — test-committed-op-version into main

@alecgibson
alecgibson marked this pull request as ready for review October 22, 2026 13:52
@alecgibson
alecgibson merged commit 16c3fb6 into main Oct 22, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants