Commit 7cb5366
fix: guard sort() with shuffle check so --shuffle is not silently ignored (#5639)
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 #5605
Co-authored-by: kapilvus <kapilvus@gmail.com>1 parent eba4a62 commit 7cb5366
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