HomeSoftware Heritage

test_client: Fix failing test since recent swh-model update

Description

test_client: Fix failing test since recent swh-model update

swh.model.tests.swh_model_data.TEST_OBJECTS["revision"] now has
three sample revisions resulting in two revisions being processed
by kafka consumer in test_client_with_deserializer.

As there is no guarantee on the order messages are processed by
kafka consumer, we need to update test implementation to avoid
failures.

Details

Provenance
anlambertAuthored on Mar 24 2022, 2:30 PM
anlambertPushed on Mar 24 2022, 3:36 PM
Differential Revision
D7422: test_client: Fix failing test since recent swh-model update
Parents
rDJNL33a8b959fe3e: pytest: Exclude build directory for tests discovery
Branches
Unknown
Tags
Unknown
Build Status
Buildable 27780
Build 43482: test-and-buildJenkins console · Jenkins