Commit 4f2f69d
committed
fix(test-utils): Use strict inequality for timestamp filter
Change from >= to > when filtering buffered events. This prevents stale
events from previous tests leaking through when they were buffered at
the same millisecond as the new listener started.
New events arriving after the listener is registered go through the
callback directly (not the buffer), so they're unaffected by this
filter.1 parent d873831 commit 4f2f69d
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
141 | 145 | | |
142 | | - | |
| 146 | + | |
143 | 147 | | |
144 | 148 | | |
145 | 149 | | |
| |||
0 commit comments