From 3a03f2778c4719e9c4932e6d57b37e24dd25c525 Mon Sep 17 00:00:00 2001 From: albertony <12441419+albertony@users.noreply.github.com> Date: Wed, 20 Oct 2021 10:11:09 +0200 Subject: [PATCH] test: ignore integration test TestCopyFileMaxTransfer on Google Drive The test fails because it expects a copy with MaxTransfer and CutoffModeHard should return fatal error, because this is thrown from accounting (ErrorMaxTransferLimitReachedFatal), but in case of Google Drive the external google API catches and replaces it with a non-fatal error: pw.CloseWithError(fmt.Errorf("googleapi: Copy failed: %v", err)) (https://github.com/googleapis/google-api-go-client/blob/7290f25351cc90fdeb492127c98cc3fb023793d4/internal/gensupport/media.go#L140) --- fstest/test_all/config.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fstest/test_all/config.yaml b/fstest/test_all/config.yaml index 11349fc51..94e1ab542 100644 --- a/fstest/test_all/config.yaml +++ b/fstest/test_all/config.yaml @@ -24,6 +24,8 @@ backends: - backend: "crypt" remote: "TestCryptDrive:" fastlist: true + ignore: + - TestCopyFileMaxTransfer - backend: "crypt" remote: "TestCryptSwift:" fastlist: false @@ -106,6 +108,10 @@ backends: - backend: "drive" remote: "TestDrive:" fastlist: true + ignore: + # Test with CutoffModeHard does not result in ErrorMaxTransferLimitReachedFatal + # because googleapi replaces it with a non-fatal error + - TestCopyFileMaxTransfer - backend: "dropbox" remote: "TestDropbox:" fastlist: false