Wait for the refresh's log lines before counting them #254
No reviewers
Labels
No labels
area:docs
area:identity
area:ops
area:plugin
area:server
channel:community
channel:direct
channel:owned
channel:press
channel:social
e2ee-constrained
gate:at-ga
gate:pre-ga
marketing
parity
relay:absent
relay:planned
relay:requested
relay:supported
risk:additive
risk:contract
risk:none
usability
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Nectenda/nectenda!254
Loading…
Reference in a new issue
No description provided.
Delete branch "worktree-diaglog-race"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes FLAKE-9.
identity.test.ts, "presents a rotated refresh token once, however many loaders were refused together", failed on main run 1199 (commit938a4df). The pull request's run 1197 of the same commit had passed it.The behaviour under test succeeded: three recoveries, one rotation, still signed in. Only the log count failed, reading 0 where 1 was expected. The plugin appends to
diag.logthrough a queue of promises, so a line can land after the call that logged it has returned. The test read the file once, straight away.It now waits up to 10 s for the refresh line and both join lines, then asserts the exact counts, so a duplicate refresh (the bug this test exists for) still fails. The change is test-only.
Verification
pnpm test,pnpm -r typecheck,pnpm lint,build-mirror --checkandcheck-conformance --checkall pass.identity.test.tsthen ran 3 more times in a row, 14/14 each.Changelog
NONE
🤖 Generated with Claude Code
https://claude.ai/code/session_01AsUFqoi4GHKYjFtPbYCgRp