From a236f6c15180c961f601fb95d0092881883243a6 Mon Sep 17 00:00:00 2001 From: Tuan Pham <103537251+phantumcode@users.noreply.github.com> Date: Tue, 5 Sep 2023 16:18:45 -0700 Subject: [PATCH] test(storage): update storage integration test with longer expiration duration (#3208) --- .../AWSS3StoragePluginOptionsUsabilityTests.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AmplifyPlugins/Storage/Tests/StorageHostApp/AWSS3StoragePluginIntegrationTests/AWSS3StoragePluginOptionsUsabilityTests.swift b/AmplifyPlugins/Storage/Tests/StorageHostApp/AWSS3StoragePluginIntegrationTests/AWSS3StoragePluginOptionsUsabilityTests.swift index 34fc3e954e..192bed0f53 100644 --- a/AmplifyPlugins/Storage/Tests/StorageHostApp/AWSS3StoragePluginIntegrationTests/AWSS3StoragePluginOptionsUsabilityTests.swift +++ b/AmplifyPlugins/Storage/Tests/StorageHostApp/AWSS3StoragePluginIntegrationTests/AWSS3StoragePluginOptionsUsabilityTests.swift @@ -24,7 +24,7 @@ class AWSS3StoragePluginOptionsUsabilityTests: AWSS3StoragePluginTestBase { await uploadData(key: key, dataString: key) #if os(iOS) - let expires = 10 + let expires = 20 #else let expires = 1 #endif @@ -69,7 +69,7 @@ class AWSS3StoragePluginOptionsUsabilityTests: AWSS3StoragePluginTestBase { task.resume() await waitForExpectations(timeout: TestCommonConstants.networkTimeout) - try await Task.sleep(seconds: 15) + try await Task.sleep(seconds: 30) #else try await Task.sleep(seconds: 2) #endif