Producers enqueue faster than available workers can finish. Use bounded synthetic batches and show a producer pausing when an explicit backlog threshold is reached.
A network failure hides whether a remote action succeeded. Use a stub that applies an action then times out, recording an uncertain state until a readback resolves it.
Long encodes keep lightweight notification jobs waiting. Configure two named queues with local delay fixtures and inspect which worker receives each task.
A slow scheduled task starts again before its previous run finishes. Use a database-backed synthetic run claim with expiration and a second scheduler attempt.
Offset pages repeat or skip feed items during new inserts. Insert synthetic timestamped events between two page requests and inspect a stable ordering cursor.
A script works on one folder but fails on empty or unusual paths. Use pytest tmp_path fixtures for empty inputs, Unicode filenames and permission-error simulation.
A deduplication script deletes the wrong copy of a document. Group temporary fixture files by size and SHA-256, then print a report with no deletion step.
A batch processor loads an entire input into memory. Transform a generated line-oriented fixture incrementally and compare the complete output to a small expected file.