diff --git a/test/failure/Invalid comment length Expected 1 Found 0 Are there extra bytes at the end of the file Or is the end of central dir signature PK in the comment.zip b/test/failure/Invalid comment length Expected 1 Found 0 Are there extra bytes at the end of the file Or is the end of central dir signature PK in the com.zip similarity index 100% rename from test/failure/Invalid comment length Expected 1 Found 0 Are there extra bytes at the end of the file Or is the end of central dir signature PK in the comment.zip rename to test/failure/Invalid comment length Expected 1 Found 0 Are there extra bytes at the end of the file Or is the end of central dir signature PK in the com.zip diff --git a/test/test.js b/test/test.js index 2b88980..df5940c 100644 --- a/test/test.js +++ b/test/test.js @@ -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.