•  
      request #36821 TrackersV3ToV5\TaskTrackerTest is flaky
    Infos
    #36821
    Joris MASSON (jmasson)
    2024-02-13 15:44
    2024-02-12 16:24
    38415
    Details
    TrackersV3ToV5\TaskTrackerTest is flaky

    The database integration test TrackersV3ToV5\TaskTrackerTest can fail randomly. This is because it expects a certain order in a result from a database query. For example, it expects to find a given date reminder at index 6, and another one at index 4. But the DB query does an "order by id", so it completely depends upon the order of insertion in the database, which is not fixed.

    Since the order is not significant for this test, it is safer to search for (or filter) the wanted result and run assertions on it. This way, the test does not depend on any order for the results.

    Dev tools
    All
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Joris MASSON (jmasson)
    Closed
    2024-02-13
    Attachments
    Empty
    References
    Referencing request #36821

    Follow-ups