Skip to content

Commit 4f2f7c2

Browse files
committed
fix flaky test
1 parent a221e4d commit 4f2f7c2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/data/test_snapshot_handling_during_errors.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,8 @@ async def test_snapshot_handling_during_errors(mocker):
2828
pipeline = Pipeline((extractor, kaboom), 1000, storage)
2929

3030
await pipeline.run(PipelineProgressReporter())
31+
32+
# Check that we have a checkpoint placed and
33+
# that we don't delete the checkpoint if we encounter an error.
3134
storage.delete.assert_not_called()
32-
assert storage.put_picklable.call_count == 6
35+
storage.put_picklable.assert_called()

0 commit comments

Comments
 (0)