librariesio / libraries.io

:books: The Open Source Discovery Service
https://libraries.io
GNU Affero General Public License v3.0
1.1k stars 204 forks source link

Ensure sort order of output for consistent testing #3241

Closed macowie closed 8 months ago

macowie commented 8 months ago

Spent some time investigating why this test started flaking in case there were any other interactions of state we needed to be concerned about. But, given the only effect is records being created "out of order", and the task output doesn't seem to be dependent on a given order, we just opted to apply a simple sort so we can assert against it consistently