Commit 1741e46
committed
fix: guard sort() with shuffle check so --shuffle is not silently ignored
sort() added in #5438 was unconditional — it ran after loadTests() applied
shuffle(), overwriting the randomised order every time. Guard the sort
with !this.opts.shuffle so alphabetical order is used for normal runs
and the shuffled order is preserved when --shuffle is requested.
Fixes #56051 parent eba4a62 commit 1741e46
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | | - | |
293 | | - | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
294 | 297 | | |
295 | 298 | | |
296 | 299 | | |
| |||
0 commit comments