Skip to content

Commit fc4ca60

Browse files
committed
Remove dead waitForConsistency copies now provided by base class
1 parent 26b8a8a commit fc4ca60

2 files changed

Lines changed: 0 additions & 22 deletions

File tree

Tests/CryptomatorCloudAccessIntegrationTests/PCloud/PCloudCloudProviderIntegrationTests.swift

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,6 @@ class PCloudCloudProviderIntegrationTests: CloudAccessIntegrationTestWithAuthent
3939
}
4040
}
4141

42-
private static func waitForConsistency(provider: CloudProvider, folderPath: CloudPath, expectedItemCount: Int, attempt: Int = 0) -> Promise<Void> {
43-
return provider.fetchItemList(forFolderAt: folderPath, withPageToken: nil).then { itemList -> Promise<Void> in
44-
if itemList.items.count >= expectedItemCount || attempt >= 10 {
45-
return Promise(())
46-
}
47-
return Promise(()).delay(1.0).then {
48-
return waitForConsistency(provider: provider, folderPath: folderPath, expectedItemCount: expectedItemCount, attempt: attempt + 1)
49-
}
50-
}
51-
}
52-
5342
override func setUpWithError() throws {
5443
try super.setUpWithError()
5544
let client = PCloud.createClient(with: credential.user)

Tests/CryptomatorCloudAccessIntegrationTests/S3/S3CloudProviderIntegrationTests.swift

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,6 @@ class S3CloudProviderIntegrationTests: CloudAccessIntegrationTestWithAuthenticat
3636
}
3737
}
3838

39-
private static func waitForConsistency(provider: CloudProvider, folderPath: CloudPath, expectedItemCount: Int, attempt: Int = 0) -> Promise<Void> {
40-
return provider.fetchItemList(forFolderAt: folderPath, withPageToken: nil).then { itemList -> Promise<Void> in
41-
if itemList.items.count >= expectedItemCount || attempt >= 10 {
42-
return Promise(())
43-
}
44-
return Promise(()).delay(1.0).then {
45-
return waitForConsistency(provider: provider, folderPath: folderPath, expectedItemCount: expectedItemCount, attempt: attempt + 1)
46-
}
47-
}
48-
}
49-
5039
override func setUpWithError() throws {
5140
try super.setUpWithError()
5241
provider = try S3CloudProvider(credential: IntegrationTestSecrets.s3Credential)

0 commit comments

Comments
 (0)