Commit f00a377
committed
fix(test-utils): Prune old events from buffer when listener registers
Instead of just filtering old events, actually remove them from the buffer.
This prevents stale events from ever being matched by future listeners,
even if timestamps are somehow compared incorrectly.
Events older than the listener registration time are definitely stale
and will never be needed by any listener.1 parent 87f6dc6 commit f00a377
File tree
2 files changed
+10
-7
lines changed- dev-packages
- e2e-tests/test-applications/nextjs-15-spotlight
- test-utils/src
2 files changed
+10
-7
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
154 | | - | |
155 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
156 | 161 | | |
157 | | - | |
158 | | - | |
159 | | - | |
| 162 | + | |
160 | 163 | | |
161 | 164 | | |
162 | 165 | | |
| |||
0 commit comments