Skip to content

add some easy test#115

Merged
DrummyFloyd merged 4 commits into
mainfrom
test/uncovered-session-branches
Jul 25, 2026
Merged

add some easy test#115
DrummyFloyd merged 4 commits into
mainfrom
test/uncovered-session-branches

Conversation

@DrummyFloyd

Copy link
Copy Markdown
Contributor

frontend & go

App.tsx pulls in every page and builds the router at module scope, so the
one piece of logic in it that decides whether a browser is signed in
could not be exercised without mounting the whole application.
The boot probe's 401-vs-anything-else rule is what makes the api-server's
503 worth answering: reading an outage as "signed out" would sign the
fleet out, which is precisely what the 503 exists to prevent. The SSO
landing's clearLocal-not-logout decision has the same shape — one
hiccuping profile fetch must not revoke the account everywhere.
Both are swallowed on purpose — the queue is best-effort and the next
event re-queues — so nothing but a test proves they do not take the
consumer loop down with them, nor that a deleted image stays silent while
an unreachable API server does not.
@codecov

codecov Bot commented Jul 25, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.00000% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
frontend/src/hooks/useSessionBoot.ts 90.00% 0 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

The first version asserted only that no entries appeared for a name no
fixture ever wrote — a syncPending emptied of its whole body passed it.
It now leads with the nominal case, so doing nothing fails, and captures
slog to hold the distinction its own comment claimed: a delete event
stays silent, an unreachable API server does not.

Same blind spot on the frontend: every case answered any path, so a
probe pointed at a route that does not exist would have kept both suites
green while sending the whole fleet to the unavailable screen.
@DrummyFloyd
DrummyFloyd merged commit a50472e into main Jul 25, 2026
18 checks passed
@DrummyFloyd
DrummyFloyd deleted the test/uncovered-session-branches branch July 25, 2026 22:42
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