Skip to content

Commit

Permalink
Fix: Fix invalid test assertion
Browse files Browse the repository at this point in the history
- Fixes an invalid assertion made for folder size comparison

{patch}

Signed-off-by: Esta Nagy <[email protected]>
  • Loading branch information
nagyesta committed Sep 21, 2024
1 parent d722372 commit 91b598c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -716,8 +716,10 @@ private static void assertFileMetadataMatches(
"File should have correct permissions: " + restoredFile);
Assertions.assertEquals(expectedMetadata.getLastModifiedUtcEpochSeconds(), actualMetadata.getLastModifiedUtcEpochSeconds(),
"File should have correct last modified time: " + restoredFile);
Assertions.assertEquals(expectedMetadata.getOriginalSizeBytes(), actualMetadata.getOriginalSizeBytes(),
"File should have correct size: " + restoredFile);
if (actualMetadata.getFileType().isContentSource()) {
Assertions.assertEquals(expectedMetadata.getOriginalSizeBytes(), actualMetadata.getOriginalSizeBytes(),
"File should have correct size: " + restoredFile);
}
Assertions.assertEquals(expectedMetadata.getOriginalHash(), actualMetadata.getOriginalHash(),
"File should have correct hash: " + restoredFile);
}
Expand Down

0 comments on commit 91b598c

Please sign in to comment.