Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.scheduler.tests.test_journal_client::test_journal_client_origin_visit_status_duplicated_messages
Failed

TEST RESULT

Run At
Jun 29 2021, 5:43 PM
Details
swh_scheduler = <swh.scheduler.backend.SchedulerBackend object at 0x7f09406027b8> def test_journal_client_origin_visit_status_duplicated_messages(swh_scheduler): """A duplicated message must be ignored """ visit_status = { "origin": "foo", "visit": 1, "status": "full", "date": DATE1, "type": "git", "snapshot": hash_to_bytes("aaaaaabbbeb6cf9efd5b920a8453e1e07157b6cd"), } process_journal_objects( {"origin_visit_status": [visit_status]}, scheduler=swh_scheduler ) process_journal_objects( {"origin_visit_status": [visit_status]}, scheduler=swh_scheduler ) expected_visit_stats = OriginVisitStats( url="foo", visit_type="git", last_eventful=DATE1, last_uneventful=None, last_failed=None, last_notfound=None, last_snapshot=hash_to_bytes("aaaaaabbbeb6cf9efd5b920a8453e1e07157b6cd"), ) > assert swh_scheduler.origin_visit_stats_get([("foo", "git")]) == [ expected_visit_stats ] E AssertionError: assert [OriginVisitS...ion_offset=4)] == [OriginVisitS...ion_offset=4)] E At index 0 diff: OriginVisitStats(url='foo', visit_type='git', last_eventful=datetime.datetime(2021, 6, 27, 15, 41, 52, 424846, tzinfo=datetime.timezone.utc), last_uneventful=None, last_failed=None, last_notfound=None, last_scheduled=None, last_snapshot=b'\xaa\xaa\xaa\xbb\xbe\xb6\xcf\x9e\xfd[\x92\n\x84S\xe1\xe0qW\xb6\xcd', next_visit_queue_position=datetime.datetime(2021, 7, 1, 20, 30, 50, 528794, tzinfo=datetime.timezone.utc), next_position_offset=4) != OriginVisitStats(url='foo', visit_type='git', last_eventful=datetime.datetime(2021, 6, 27, 15, 41, 52, 424846, tzinfo... E E ...Full output truncated (6 lines hidden), use '-vv' to show .tox/py3/lib/python3.7/site-packages/swh/scheduler/tests/test_journal_client.py:664: AssertionError