Commit b936eb3
committed
Make
The intent of `generate_test_routes` is to be deterministic based
on a seed which is printed at the start. That way if a test fails,
the seed can be trivially hard-coded and the test can be
replicated.
Sadly, it was not, as it used an iterator over an `IndexedMap`
with key order randomization. Luckily, `IndexedMap` already
supports sorted iteration, so we simply use it here.generate_test_routes deterministic based on its seed1 parent 233aa39 commit b936eb3
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8848 | 8848 | | |
8849 | 8849 | | |
8850 | 8850 | | |
8851 | | - | |
8852 | | - | |
| 8851 | + | |
| 8852 | + | |
| 8853 | + | |
8853 | 8854 | | |
8854 | | - | |
8855 | | - | |
| 8855 | + | |
| 8856 | + | |
| 8857 | + | |
8856 | 8858 | | |
8857 | 8859 | | |
8858 | 8860 | | |
| |||
0 commit comments