loculus-project / loculus

An open-source software package to power microbial genomic databases
https://loculus.org
GNU Affero General Public License v3.0
37 stars 2 forks source link

chore(backend): fix some more racy backend tests by not asserting on exact order #3247

Closed corneliusroemer closed 2 days ago

corneliusroemer commented 2 days ago

resolves #3242

This should avoid most of the flakes due to similar wrongly strong assumptions about SQL result order being stable without explicit sorting.

I can't find any more instances of jsonPath("\$[*].

But I should also look for jsonPath("\$[0] which I haven't done. Just noticed some tests like this in the revocation tests.