mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
@mattwr18 @ulfgebhardt @tirokk @appinteractive @ogerly I think I just fixed a randomly failing test (so-called "flaky" test). After an update of `neo4j-graphql-js` I wondered why the `TagsAndCategories.feature` test failed consistently. It turns out the table that you can see in the test is ordered by the "Users" column: | | Name | Users | Posts | | 1 | Democracy | 2 | 3 | | 2 | Ecology | 1 | 1 | | 3 | Nature | 1 | 2 | So there is a tie between row 2 and row 3. It seems that on version 2.4.0 the backend would return those rows in arbitrary order and now it returns them in a deterministic order, thus failing the test every time. Therefore I changed the test setup and I believe this should also make the build more robust now.