Fix integration test

This commit is contained in:
Chun-Hung Tseng
2023-07-16 10:16:35 +02:00
parent acbb0db3d0
commit 0c3101417a

View File

@@ -225,7 +225,7 @@ func downloadFile(t *testing.T, ctx context.Context, protonDrive *ProtonDrive, p
if fileSystemAttr == nil {
t.Fatalf("FileSystemAttr should not be nil")
} else {
if sizeOnServer == fileSystemAttr.Size {
if fileSystemAttr.Size != 0 && sizeOnServer == fileSystemAttr.Size {
t.Fatalf("Not possible due to encryption file overhead")
}
if len(downloadedData) != int(fileSystemAttr.Size) {