You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Delay to allow eventual consistency propagation (e.g. S3, pCloud) so that
710
+
// uploadFile's pre-upload existence check can detect the just-created folder.
711
+
returnPromise(()).delay(5.0)
712
+
}.then{
682
713
returnself.provider.uploadFile(from: localURL, to: cloudPath, replaceExisting:true)
683
714
}.then{ _ in
684
715
XCTFail("uploadFile fulfilled to already existing folder with replace existing")
@@ -1086,14 +1117,14 @@ extension CloudProvider {
1086
1117
/**
1087
1118
Checks if the item exists at the given cloud path.
1088
1119
1089
-
This method is primarily used as a workaround for providers with eventual consistency. It will repeatedly check if `expectToExist` doesn't match with a delay of 1 second up to a maximum of 3 attempts.
1120
+
This method is primarily used as a workaround for providers with eventual consistency. It will repeatedly check if `expectToExist` doesn't match with a delay of 2 seconds up to 10 retries (11 total checks).
Copy file name to clipboardExpand all lines: Tests/CryptomatorCloudAccessIntegrationTests/CryptoDecorator/VaultFormat6/VaultFormat6S3IntegrationTests.swift
+1-26Lines changed: 1 addition & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ class VaultFormat6S3IntegrationTests: CloudAccessIntegrationTest {
42
42
return
43
43
}
44
44
// Wait for Scaleway S3's eventual consistency to catch up after vault creation.
letsetUpPromise=DecoratorFactory.createFromExistingVaultFormat6(delegate:VaultFormat6S3IntegrationTests.cloudProvider, vaultPath:VaultFormat6S3IntegrationTests.vaultPath, password:"IntegrationTest").then{ decorator in
Copy file name to clipboardExpand all lines: Tests/CryptomatorCloudAccessIntegrationTests/CryptoDecorator/VaultFormat7/VaultFormat7S3IntegrationTests.swift
+1-26Lines changed: 1 addition & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ class VaultFormat7S3IntegrationTests: CloudAccessIntegrationTest {
42
42
return
43
43
}
44
44
// Wait for Scaleway S3's eventual consistency to catch up after vault creation.
letsetUpPromise=DecoratorFactory.createFromExistingVaultFormat7(delegate:VaultFormat7S3IntegrationTests.cloudProvider, vaultPath:VaultFormat7S3IntegrationTests.vaultPath, password:"IntegrationTest").then{ decorator in
0 commit comments