Commit 6cef57b
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 6cef57b
1 file changed
+9
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8843 | 8843 | | |
8844 | 8844 | | |
8845 | 8845 | | |
8846 | | - | |
| 8846 | + | |
8847 | 8847 | | |
8848 | 8848 | | |
8849 | 8849 | | |
8850 | 8850 | | |
8851 | | - | |
8852 | | - | |
| 8851 | + | |
| 8852 | + | |
| 8853 | + | |
| 8854 | + | |
8853 | 8855 | | |
8854 | | - | |
8855 | | - | |
| 8856 | + | |
| 8857 | + | |
| 8858 | + | |
| 8859 | + | |
8856 | 8860 | | |
8857 | 8861 | | |
8858 | 8862 | | |
| |||
0 commit comments