Repository navigation
test: restore the engine coverage #3 dropped - #5
Merged
Merged
Conversation
Shrinking two_peers in #3 removed checks that the protocol tests didn't have, though the commit said they did. Back, on the in-memory network: - edits and deletes reaching the other side, blanked on both; only the author can change a message - a reply quoting its message on both sides - clearing one side: the other keeps its copy, numbering carries on, and catch-up never sends the cleared messages again - typing reaching the peer - nudges limited each way, including from a build that doesn't limit them - away by hand lasting until /back or a message; idle away ending with input; the peer's away ending with the session - do not disturb refusing nudges, lasting across a restart, said again on reconnecting, and ending on its own Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
#3 shrank
two_peers.rsto a smoke test. Its commit said the removed checks were covered by the protocol tests, but most weren't. This adds them back on the in-memory network, as 9 tests inchat/protocol_tests.rs:There are no changes to the app.
Evidence
Before: typing, nudges, away, idle and do not disturb had no engine test on
main. Edits, deletes, replies and clearing were tested only at theDblevel.After: 29 protocol tests pass in about 0.5 s, and passed 10 out of 10 runs.
I broke two rules on purpose, and each was caught:
cargo fmt --check,clippy -D warningsandcargo testall pass.Merge Danger
Door: two-way
Blast Radius: none
These are tests only.
🤖 Generated with Claude Code