Page MenuHomeSoftware Heritage

tests: Fix flaky test introduced in e72b1e7a9d18
ClosedPublic

Authored by anlambert on Feb 7 2022, 5:57 PM.

Details

Summary

Hypothesis can generate multiple times the same origin URL which
makes test fail due to the use of django cache in get_origin_visits.

So force the generation of a single hypothesis example for that test.

Diff Detail

Repository
rDWAPPS Web applications
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D7111 (id=25775)

Rebasing onto ca8e529f2d...

Current branch diff-target is up to date.
Changes applied before test
commit aeb6d7cdbcad00ca99bbe95244f131e2856d8263
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Mon Feb 7 17:56:19 2022 +0100

    tests: Fix flaky test introduced in e72b1e7a9d18
    
    Hypothesis can generate multiple times the same origin URL which
    makes test fail due to the use of django cache in get_origin_visits.
    
    So force the generation of a single hypothesis example for that test.

See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/1351/ for more details.

This revision is now accepted and ready to land.Feb 7 2022, 6:14 PM