Skip to content

Commit f0a724d

Browse files
committed
tests: don't depend on an implicit row order ✅
1 parent 163fcd6 commit f0a724d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/sample-gtfs-feed.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ frequencies_it_query=$(cat << EOF
229229
SELECT t_departure, stop_sequence, stop_id, frequencies_it
230230
FROM arrivals_departures
231231
WHERE trip_id = 'b-downtown-on-working-days' AND "date" = '2019-05-29' AND frequencies_it = 3
232+
ORDER BY t_departure
232233
EOF
233234
)
234235
frequencies_it_rows="$(psql --csv -t -c "$frequencies_it_query")"
@@ -273,6 +274,7 @@ SELECT
273274
stop_url, stop_url_lang
274275
FROM stops_translated
275276
WHERE stop_id LIKE 'airport%'
277+
ORDER BY stop_id, stop_name_lang, stop_desc_lang
276278
EOF
277279
)
278280
stops_translated_rows="$(psql --csv -t -c "$stops_translated_query")"

0 commit comments

Comments
 (0)