Commit a4ffb19
authored
test(react-router): Unflake
This test flaked before because we used real timers and apparently
`setTimeout(_, 10)` sometimes caused an absolute delay <10 ms. Let's use
fake timers instead which should(?) ensure that this works correctly in
the test fixture.
closes #17611flushIfServerless test (#17610)1 parent e083772 commit a4ffb19
File tree
1 file changed
+4
-2
lines changed- packages/react-router/test/server
1 file changed
+4
-2
lines changedLines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
| 159 | + | |
| 160 | + | |
160 | 161 | | |
161 | 162 | | |
162 | 163 | | |
| |||
172 | 173 | | |
173 | 174 | | |
174 | 175 | | |
175 | | - | |
| 176 | + | |
| 177 | + | |
176 | 178 | | |
177 | 179 | | |
178 | 180 | | |
| |||
0 commit comments