diff --git a/AmplifyPlugins/Storage/Tests/StorageHostApp/AWSS3StoragePluginIntegrationTests/AWSS3StoragePluginBasicIntegrationTests.swift b/AmplifyPlugins/Storage/Tests/StorageHostApp/AWSS3StoragePluginIntegrationTests/AWSS3StoragePluginBasicIntegrationTests.swift index 70f2dfccc3..6a2a1ad007 100644 --- a/AmplifyPlugins/Storage/Tests/StorageHostApp/AWSS3StoragePluginIntegrationTests/AWSS3StoragePluginBasicIntegrationTests.swift +++ b/AmplifyPlugins/Storage/Tests/StorageHostApp/AWSS3StoragePluginIntegrationTests/AWSS3StoragePluginBasicIntegrationTests.swift @@ -173,7 +173,7 @@ class AWSS3StoragePluginBasicIntegrationTests: AWSS3StoragePluginTestBase { /// Then: The operation completes successfully with the data retrieved func testDownloadDataToMemory() async throws { let key = UUID().uuidString - await uploadData(key: key, data: key.data(using: .utf8)!) + try await uploadData(key: key, data: key.data(using: .utf8)!) _ = try await Amplify.Storage.downloadData(key: key, options: .init()).value _ = try await Amplify.Storage.remove(key: key) } @@ -185,7 +185,7 @@ class AWSS3StoragePluginBasicIntegrationTests: AWSS3StoragePluginTestBase { let key = UUID().uuidString let timestamp = String(Date().timeIntervalSince1970) let timestampData = timestamp.data(using: .utf8)! - await uploadData(key: key, data: timestampData) + try await uploadData(key: key, data: timestampData) let filePath = NSTemporaryDirectory() + key + ".tmp" let fileURL = URL(fileURLWithPath: filePath) removeIfExists(fileURL) @@ -209,7 +209,7 @@ class AWSS3StoragePluginBasicIntegrationTests: AWSS3StoragePluginTestBase { /// Then: The operation completes successfully with the URL retrieved func testGetRemoteURL() async throws { let key = UUID().uuidString - await uploadData(key: key, dataString: key) + try await uploadData(key: key, dataString: key) let remoteURL = try await Amplify.Storage.getURL(key: key) @@ -274,7 +274,7 @@ class AWSS3StoragePluginBasicIntegrationTests: AWSS3StoragePluginTestBase { func testListFromPublic() async throws { let key = UUID().uuidString let expectedMD5Hex = "\"\(key.md5())\"" - await uploadData(key: key, dataString: key) + try await uploadData(key: key, dataString: key) let options = StorageListRequest.Options(accessLevel: .guest, targetIdentityId: nil, path: key) @@ -311,7 +311,7 @@ class AWSS3StoragePluginBasicIntegrationTests: AWSS3StoragePluginTestBase { for i in 0..