Skip to content

Commit a0c4f3a

Browse files
committed
chore: fix failing unit test
1 parent 2b16d11 commit a0c4f3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

AmplifyPlugins/Logging/Tests/AWSCloudWatchLoggingPluginTests/AWSCloudWatchLoggingMonitorTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ final class AWSCloudWatchLoggingMonitorTests: XCTestCase {
2929
/// Given: the the logging monitor is configured with a 2 second interval
3030
/// When: the monitor is enabled
3131
/// Then: the delegate is autoamtically invoked
32-
func testDelegateIsInvokedOnInterval() {
32+
func testDelegateIsInvokedOnInterval() async {
3333
monitor.setAutomaticFlushIntervals()
34-
wait(for: [invokedExpectation], timeout: 3)
34+
await fulfillment(of: [invokedExpectation], timeout: 3)
3535
}
3636
}
3737

0 commit comments

Comments
 (0)