Six tests that prove again what their change left alone are removed by WaylandYang · Pull Request #1127 · deeplethe/utopia · GitHub
Skip to content

Six tests that prove again what their change left alone are removed - #1127

Merged
WaylandYang merged 2 commits into
devfrom
chore/slim-tests
Oct 9, 2026
Merged

WaylandYang merged 2 commits into
devfrom
chore/slim-tests

Conversation

@WaylandYang

Copy link
Copy Markdown
Contributor

Why

A test should cover the behaviour its change introduced. These six prove again something the change did not touch, or prove the same thing a second time at another layer. They cost review time and CI time and guard nothing of their own. The measure is the one stated on #1126.

What changes

343 lines of tests removed, no code change:

Test Lines Why it goes
notion_resync_tests.rs (one test, whole file) 219 Re-proves through the database that a changed body makes a new document version, which is ingest_item's behaviour and not Notion's. What Notion's fetch returns after a failed read is held by a_page_whose_body_cannot_be_read_is_left_out_and_the_others_still_come_back.
flat_page_markdown_is_unchanged 19 A flat page was not changed by nested traversal.
child_request_error_keeps_existing_diagnostics 25 The error text is the sender's and predates nested reads; the skipped-page test asserts the same message.
child_rate_limit_exhaustion_is_an_error 27 Running out of retries is Paced::send's behaviour. That nested requests share the pacing stays covered.
date_detection_keeps_upload_access_and_folder_checks 31 Upload access and folder checks were not touched by date detection.
unrecognized_literal_text_keeps_the_existing_fallback 16 The fallback for text that is not a date or a number is unchanged.

A fixture field only the removed upload test read goes with it.

Looked at and kept: the other tests from the same PRs (about 75), each of which holds a behaviour its change introduced.

How it was checked

cargo clippy -p utopia-server --all-targets -- -D warnings is clean, and the notion, documents_routes and rdf test groups pass with the database required (17, 14 and 33 tests).

🤖 Generated with Claude Code

WaylandYang and others added 2 commits October 9, 2026 17:13
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Wayland Yang <wayland0916@gmail.com>
@WaylandYang
WaylandYang merged commit 9683f30 into dev Oct 9, 2026
6 checks passed
@WaylandYang
WaylandYang deleted the chore/slim-tests branch October 9, 2026 09:19
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.

1 participant