Commit 5e349d5
committed
Fix race condition in syslog reset for parallel test execution
The global after hook that resets the Syslog singleton was causing
sporadic failures in parallel test runs, particularly in
DelayedWorker specs where Steno context data was being lost.
Changes:
- Skip syslog reset when TEST_ENV_NUMBER is set (parallel execution)
- Add :skip_syslog_reset tag to DelayedWorker spec for extra safety
- Prevents race conditions when multiple test processes access singleton
The nil guard in add_record ensures tests still work even if @syslog
is not reset between tests in parallel mode.1 parent 060d846 commit 5e349d5
3 files changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
212 | 215 | | |
213 | 216 | | |
214 | 217 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
0 commit comments