Skip to content

Commit ac7eeae

Browse files
authored
chore(build): increase timeout on flaky unit tests (#4046)
1 parent 4c00abb commit ac7eeae

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

AmplifyPlugins/Logging/Tests/AWSCloudWatchLoggingPluginTests/AWSCloudWatchLoggingMonitorTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ final class AWSCloudWatchLoggingMonitorTests: XCTestCase {
3131
/// Then: the delegate is autoamtically invoked
3232
func testDelegateIsInvokedOnInterval() async {
3333
monitor.setAutomaticFlushIntervals()
34-
await fulfillment(of: [invokedExpectation], timeout: 3)
34+
await fulfillment(of: [invokedExpectation], timeout: 10)
3535
}
3636
}
3737

AmplifyPlugins/Logging/Tests/AWSCloudWatchLoggingPluginTests/AWSCloudWatchLoggingSessionControllerTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ final class AWSCloudWatchLoggingSessionControllerTests: XCTestCase {
6969
systemUnderTest.client = mockCloudWatchLogClient
7070
systemUnderTest.enable()
7171
try await systemUnderTest.flushLogs()
72-
await fulfillment(of: [hubEventExpectation], timeout: 2)
72+
await fulfillment(of: [hubEventExpectation], timeout: 10)
7373
}
7474

7575
private func getLogFile() -> URL {

AmplifyPlugins/Storage/Tests/AWSS3StoragePluginTests/Support/Internal/DefaultStorageTransferDatabaseTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ class DefaultStorageTransferDatabaseTests: XCTestCase {
217217
}
218218
expectation.fulfill()
219219
}
220-
await fulfillment(of: [expectation], timeout: 5)
220+
await fulfillment(of: [expectation], timeout: 10)
221221
}
222222

223223
/// Given: A DefaultStorageTransferDatabase
@@ -228,7 +228,7 @@ class DefaultStorageTransferDatabaseTests: XCTestCase {
228228
database.prepareForBackground() {
229229
expectation.fulfill()
230230
}
231-
await fulfillment(of: [expectation], timeout: 5)
231+
await fulfillment(of: [expectation], timeout: 10)
232232
}
233233

234234
/// Given: The StorageTransferDatabase Type

0 commit comments

Comments
 (0)