From 0c3101417acd642cfe3444554d6488c14293c8d8 Mon Sep 17 00:00:00 2001 From: Chun-Hung Tseng Date: Sun, 16 Jul 2023 10:16:35 +0200 Subject: [PATCH] Fix integration test --- drive_test_helper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drive_test_helper.go b/drive_test_helper.go index c91ab6f..0ee32dd 100644 --- a/drive_test_helper.go +++ b/drive_test_helper.go @@ -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) {