Skip to content

chore(firestore): add --exit flag to test-only and conformance - #9250

Open
dlarocque wants to merge 1 commit into
mainfrom
dl/mocha-exit
Open

chore(firestore): add --exit flag to test-only and conformance#9250
dlarocque wants to merge 1 commit into
mainfrom
dl/mocha-exit

Conversation

@dlarocque

@dlarocque dlarocque commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Pass --exit to mocha in test-only and conformance to ensure Node terminates once tests complete. This prevents test runner from hanging on open grpc streams and background timer handles in modern node versions.

This technically could hide bugs in code that cause our tests to hang.

Pass `--exit` to mocha in test-only and conformance to ensure Node
terminates once tests complete. This prevents test runner from hanging
on open grpc streams and background timer handles in modern node
versions.
@dlarocque
dlarocque requested a review from a team as a code owner September 4, 2026 19:55
@product-auto-label product-auto-label Bot added the api: firestore Issues related to the Firestore API. label Sep 4, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the conformance and test-only scripts in handwritten/firestore/package.json to include the --exit flag for mocha execution, ensuring that the test processes exit after completion. There are no review comments, so I have no feedback to provide.

@MarkDuckworth MarkDuckworth left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we seeing instances of these script hang at the end of testing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: firestore Issues related to the Firestore API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants