Skip to content

Commit 78e0d91

Browse files
authored
Change default timeout interval of AtomTestContext/waitForUpdate (#68)
1 parent ba0c761 commit 78e0d91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Atoms/Context/AtomTestContext.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ public struct AtomTestContext: AtomWatchableContext {
4242
/// ```
4343
///
4444
/// - Parameter interval: The maximum timeout interval that this function can wait until
45-
/// the next update. The default timeout interval is `60`.
45+
/// the next update. The default timeout interval is `10`.
4646
/// - Returns: A boolean value indicating whether an update is done.
4747
@discardableResult
48-
public func waitForUpdate(timeout interval: TimeInterval = 60) async -> Bool {
48+
public func waitForUpdate(timeout interval: TimeInterval = 10) async -> Bool {
4949
let updates = AsyncStream<Void> { continuation in
5050
let cancellable = state.notifier.sink(
5151
receiveCompletion: { completion in

0 commit comments

Comments
 (0)