Skip to content

Conversation

@tikkss
Copy link
Contributor

@tikkss tikkss commented Dec 13, 2025

GitHub: GH-235

Assign a worker ID and make it available to each test and test case, so a user can avoid using shared resources.

We use a class instance variable at the test case level, but this does not cause race conditions. Since 3383428, the test case level fixture defined tests run in the same worker.

GitHub: test-unitGH-235

Assign a worker id and make it available to each test and test case, so
a user can avoid using shared resources.

We use a class instance variable at the test case level, but this does
not cause race conditions. Since 3383428, the test case level fixture
defined tests run in the same worker.

Co-authored-by: Sutou Kouhei <kou@clear-code.com>
Co-authored-by: Naoto Ono <onoto1998@gmail.com>
@tikkss
Copy link
Contributor Author

tikkss commented Dec 14, 2025

Thanks for your suggestions and the fix! I updated PR description (id -> ID).

@kou kou merged commit 2212131 into test-unit:master Dec 14, 2025
36 checks passed
@tikkss tikkss deleted the add-support-for-worker-id branch December 14, 2025 07:09
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.

2 participants