HomeSoftware Heritage

tests: Fix flaky test_resolve_swhids_snapshot_context

Description

tests: Fix flaky test_resolve_swhids_snapshot_context

Pick the first branch and release in the snapshot instead of randomly
selecting it. As multiple branches can point to a same revision, this
ensures the same branch name will be picked when resolving a SWHID to
a browse URL.

Details

Provenance
anlambertAuthored on Aug 10 2020, 2:40 PM
anlambertPushed on Aug 10 2020, 4:07 PM
Differential Revision
D3755: tests: Fix flaky test_resolve_swhids_snapshot_context
Parents
rDWAPPS0c15c048b4c0: tests: Replace calls to snapshot_get with snapshot_get_all_branches.
Branches
Loading...
Tags
Loading...
Build Status
Buildable 14484
Build 22274: test-and-buildJenkins console · Jenkins