Commit 4e5f8e7
committed
tests: fix conftest sort to preserve definition order within files
The previous sort key used item.name as tie-breaker, which sorted
tests alphabetically within each file. This broke test_tablets.py
where test_tablets_invalidation_decommission_non_cc_node (a
destructive test that decommissions a node) was moved before
test_tablets_invalidation_drop_ks, causing the latter to fail.
Use the original collection index as tie-breaker instead, preserving
the definition order inside each file while still grouping modules
by cluster topology across files.1 parent 80267dd commit 4e5f8e7
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
44 | 51 | | |
45 | 52 | | |
46 | | - | |
| 53 | + | |
47 | 54 | | |
48 | 55 | | |
49 | 56 | | |
| |||
0 commit comments