Repository navigation
docs(dev): testing guide states which tests to write and that they wait for events, not time - #696
Open
PiquelChips wants to merge 2 commits into
Open
PiquelChips wants to merge 2 commits into
PiquelChips wants to merge 2 commits into
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
PiquelChips
force-pushed
the
test/testing-rules
branch
from
November 22, 2026 14:33
901da79 to
b5ef01e
Compare
PiquelChips
force-pushed
the
test/expiry-waits
branch
from
November 22, 2026 14:34
908854f to
8442b4d
Compare
…it for events, not time
…cases the tests use
PiquelChips
force-pushed
the
test/expiry-waits
branch
from
November 22, 2026 14:51
8442b4d to
7954eec
Compare
PiquelChips
force-pushed
the
test/testing-rules
branch
from
November 22, 2026 14:51
b5ef01e to
1ae4fa1
Compare
PiquelChips
marked this pull request as ready for review
November 22, 2026 14:55
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.
The engineering standard now has rules on which tests to write and how they wait. The testing guide didn't state them yet, so this PR adds them. It closes the stack that brings the tests in line.
Stacked on #695.
Changes
docs/dev/testing.md, under "Write a focused test", now says:watchon the test's fake,until_blocked, paused tokio time, theexpirefixtures, and// wall-clock: <why>for a real peer, a lock wait PostgreSQL shows only in its catalog views, or code that reads the system clock. It also namesDatabase::exclusiveand thepause/advance/resumepattern.docs/dev/rust-conventions.mdlinks to that section from its tests paragraph.Checks
just docsbuilds the book, and every link resolves.Council review
Rounds: 3
GPT 6.1 Sol could not take part: its account hit its usage limit.
Note
Written by Claude Opus 5.5 in Claude Code and reviewed by Claude Opus 5.5 and Claude Fable 5.2 (via T3 Code)