Commit 8415cd7
committed
fix: delete consumed pendingFailureDurations entries to prevent stale leaks
The pendingFailureDurations map was never cleaned up after a duration
was consumed, allowing stale entries to attach incorrect durations to
later failures with the same suite/test key in retry scenarios.
Also adds a clarifying comment on the Swift Testing issue-count-as-
failed-count approximation.1 parent 904c110 commit 8415cd7
File tree
2 files changed
+7
-0
lines changed- src/utils
2 files changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
113 | 118 | | |
114 | 119 | | |
115 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| 179 | + | |
179 | 180 | | |
180 | 181 | | |
181 | 182 | | |
| |||
211 | 212 | | |
212 | 213 | | |
213 | 214 | | |
| 215 | + | |
214 | 216 | | |
215 | 217 | | |
216 | 218 | | |
| |||
0 commit comments