Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/main/auto-refresh-backoff: fix sorting of changes from the state (
#14691) * tests/main/auto-refresh-backoff: fix sorting of changes from the state When the changes reach 2 digit numbers, the default lexicographic sorting will sort changes with ids 10, or 11 before 9, thus leading to the last change ID being incorrect breaking the rest of the test. Compare: google:ubuntu-16.04-64 .../tests/main/auto-refresh-backoff# snap debug api /v2/changes?select=all | \ jq '.result | sort_by(.id) | .[].id' "1" "10" "11" "2" ... <IDs 3-7> "8" "9" google:ubuntu-16.04-64 .../tests/main/auto-refresh-backoff# snap debug api /v2/changes?select=all | \ jq '.result | sort_by(.id|tonumber) | .[].id' "1" "2" ... <IDs 3-7> "8" "9" "10" "11" Signed-off-by: Maciej Borzecki <[email protected]> * tests/core/auto-refresh-backoff-after-reboot: fix ordering by change ID Signed-off-by: Maciej Borzecki <[email protected]> --------- Signed-off-by: Maciej Borzecki <[email protected]>
- Loading branch information