You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Eagerly initialize reporters_mutex to prevent race on lazy init
- Move @Finalized flag after write_report so finalize can retry on failure
- Use mutex-protected snapshot in at_exit hook for consistency
- Fix THREAD_SAFETY.md: use proper Ruby class names, document eager mutex
- Add real multi-threaded concurrency test (10 threads x 5 assertions)
- Add finalize retry-after-failure test
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
this document explains how `snap_diff` behaves under rails parallel tests with the `:thread` strategy.
3
+
This document explains how `snap_diff` behaves under Rails parallel tests with the `:thread` strategy.
4
4
5
-
## overview
5
+
## Overview
6
6
7
-
`snap_diff` is thread safe for parallel test execution as long as global configuration is set before tests run. per thread state is isolated, and shared state is protected where it matters.
7
+
`snap_diff` is thread safe for parallel test execution as long as global configuration is set before tests run. Per-thread state is isolated, and shared state is protected where it matters.
8
8
9
-
## architecture summary
9
+
## Architecture Summary
10
10
11
-
### per-thread assertion registry
11
+
### Per-thread Assertion Registry
12
12
13
-
each thread gets its own `assertionregistry` stored in thread-local storage:
13
+
Each thread gets its own `AssertionRegistry` stored in thread-local storage:
0 commit comments