You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(tests): make zip-download assertions order-tolerant
Nextcloud server PR nextcloud/server#60225 dropped the implicit
`ORDER BY name ASC` from `Cache::getFolderContentsById`, so the order
of children inside a downloaded zip is now whatever the DB returns and
varies by backend. On PostgreSQL this breaks test_download_as_zip /
test_download_as_zip_async, which asserted on positional indices.
Rebuild `_test_download_as_zip` around a `{filename: size}` dict and
check membership + sizes instead of positions. Behavior is unchanged
for empty / single-child fixtures (n=2, n=3) and verified against
NC32/33/34/35.
0 commit comments