tests: Add BlobIO test for reading bigger-than-chunk files · libgit2/pygit2@2f9ec69 · GitHub
Skip to content

Commit 2f9ec69

Browse files
Werkovjdavid
authored andcommitted
tests: Add BlobIO test for reading bigger-than-chunk files
The reader won't properly synchronize threads and when a file larger than DEFAULT_CHUNK_SIZE (8 KiB) is partially read, the close() method would hand in deadlock. Note: test/test_blob.py::test_blob_partial_read will hang indefinitely without a fix.
1 parent be67bec commit 2f9ec69

3 files changed

Lines changed: 19 additions & 0 deletions

File tree

‎test/conftest.py‎

Lines changed: 6 additions & 0 deletions

‎test/data/bigrepo.zip‎

65.4 KB
Binary file not shown.

‎test/test_blob.py‎

Lines changed: 13 additions & 0 deletions

0 commit comments

Comments
 (0)