Skip to content

Commit

Permalink
truncate long test file names for eCryptfs compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
thejoshwolfe committed Dec 9, 2024
1 parent d98e052 commit e00f139
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ listZipFiles([path.join(__dirname, "failure")]).forEach(function(zipfilePath) {
}
function checkErrorMessage(err) {
var actualMessage = err.message.replace(/[^0-9A-Za-z-]+/g, " ").trimRight();
// eCryptfs limits file names to 143 bytes. (All file names are ascii.)
actualMessage = actualMessage.slice(0, 143 - ".zip".length);
if (actualMessage !== expectedErrorMessage) {
if (i !== 0) {
// The error messages are tuned for the common case.
Expand Down

0 comments on commit e00f139

Please sign in to comment.