mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-03 21:23:38 +00:00
[PR #895] use File.OpenRead instead of File.Open in tests to allow concurrent access #1322
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/adamhathcock/sharpcompress/pull/895
State: closed
Merged: Yes
When running all tests concurrently, it could happens that multiple tests accessed the same test file at the same time.
This should not be an issue when just reading the files, however the usage of
File.Openwithout aFileShareparameter made the access exclusive and caused each subsequent call to fail. This was especially noticable in theZip_Uncompressed_64bittest due to the long time it takes.