Skip to content

Resolve #2868: Cover async rejection cleanup in raceWithAbort - #2897

Merged
ayden94 merged 1 commit into
mainfrom
issue-2868-cover-async-rejection-cleanup
Aug 3, 2026
Merged

Resolve #2868: Cover async rejection cleanup in raceWithAbort#2897
ayden94 merged 1 commit into
mainfrom
issue-2868-cover-async-rejection-cleanup

Conversation

@ayden94

@ayden94 ayden94 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Add the missing asynchronous-rejection regression coverage for the documented raceWithAbort() listener cleanup contract.

Linked context: Closes #2868

Changes

  • add a deterministic microtask-delayed rejection case
  • assert raceWithAbort() preserves the original rejection object
  • assert the exact race-owned abort listener is removed after rejection

Testing

  • pnpm vitest run packages/runtime/src/abort.test.ts (10 passed)
  • pnpm --filter @fluojs/runtime typecheck
  • pnpm --filter @fluojs/runtime test (27 files, 301 passed)
  • changed-file LSP diagnostics: clean
  • full pnpm verify passed build/typecheck/lint; two unrelated parallel-suite failures passed when rerun in isolation, so canonical GitHub CI is the merge gate

Release impact

  • This PR has consumer-visible release impact and includes a changeset.
  • This PR has no consumer-visible release impact.

Test-only coverage of existing behavior; no Changeset is required.

Public export documentation

  • No public exports changed.
  • Existing source and README documentation remains unchanged.

Behavioral contract

  • No documented behavioral contracts were removed without migration notes.
  • No new behavioral contract was introduced.
  • The existing all-settlement listener cleanup invariant now covers asynchronous rejection directly.

Platform consistency governance (SSOT)

  • No platform contract docs or governance SSOT changed.
  • The change is isolated to the canonical runtime abort unit test.

@ayden94
ayden94 merged commit de37469 into main Aug 3, 2026
10 checks passed
@ayden94
ayden94 deleted the issue-2868-cover-async-rejection-cleanup branch August 3, 2026 08:53
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.

[audit][area:foundation] Cover async rejection cleanup in raceWithAbort (P2)

1 participant