HomeSoftware Heritage

Be more careful with content generation in test_write_replay

Authored by olasd on Mar 10 2020, 1:52 PM.

Description

Be more careful with content generation in test_write_replay

When using the object_dicts() strategy, we often end up not generating any
contents; This works because the replayer.process call is within a loop,
guarded with the length of the queue.

If the queue is empty, replayer.process is never called, but the test is also
useless. So we add an assertion to that effect.

Details

Committed
olasdMar 10 2020, 2:06 PM
Pushed
olasdMar 10 2020, 2:13 PM
Differential Revision
D2797: Be more careful with content generation in test_write_replay
Parents
rDJNLfd453b4784ca: Add type annotations to swh.journal.client arguments
Branches
Unknown
Tags
Unknown
Build Status
Buildable 11021
Build 16594: test-and-buildJenkins