Commit 5da364a
committed
test(replay): make handleNetworkBreadcrumbs flush robust to await depth
waitForReplayEventBuffer hardcoded "one Promise.resolve() per await in the util
functions", so it silently coupled the test to the enrichment chain's exact
await count. That made a behavior-neutral lint fix (dropping a redundant
`return await` in _getResponseText) look like a data-loss regression.
Flush microtasks in a bounded loop instead, so the test no longer depends on
the implementation's await depth. _getResponseText keeps the rule-compliant
`return response.text()`.1 parent ce6c734 commit 5da364a
1 file changed
Lines changed: 6 additions & 6 deletions
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
0 commit comments