https://forge.softwareheritage.org/source/swh-scheduler.git
Revision 3d13cda421b9fbbe23feda718b4b974b2235ff2e authored by Vincent SELLIER on 21 January 2021, 17:49:38 UTC, committed by Vincent SELLIER on 23 January 2021, 18:57:17 UTC
Fix the case:
m1: date2/snapshot1
m2: date1/snaptshot1
which results to:
last_eventful = date2
last_uneventful = date2

The upsert was always keeping the most recent date when the
eventful/uneventful dates were switched

Related to T2978
1 parent d528998
Raw File
Tip revision: 3d13cda421b9fbbe23feda718b4b974b2235ff2e authored by Vincent SELLIER on 21 January 2021, 17:49:38 UTC
Solve uneventful/eventful with unordered messages with snapshots
Tip revision: 3d13cda
conftest.py
# Copyright (C) 2020  The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information


from hypothesis import settings

# define tests profile. Full documentation is at:
# https://hypothesis.readthedocs.io/en/latest/settings.html#settings-profiles
settings.register_profile("fast", max_examples=5, deadline=5000)
settings.register_profile("slow", max_examples=20, deadline=5000)


pytest_plugins = ["swh.scheduler.pytest_plugin", "swh.core.db.pytest_plugin"]
back to top