Skip to content

Commit 069d4a9

Browse files
committed
Update documentation for PollingConfigurationTrait to reflect that duration may be greater than or equal to interval
1 parent 7dd8ceb commit 069d4a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Testing/Traits/PollingConfigurationTrait.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ extension Trait where Self == PollingConfirmationConfigurationTrait {
5959
/// lasts for, especially on highly-loaded systems with a lot of tests
6060
/// running.
6161
/// If nil, polling will be attempted for approximately 1 second.
62-
/// `duration` must be greater than 0.
62+
/// If specified, `duration` must be greater than or equal to `interval`.
6363
/// - interval: The minimum amount of time to wait between polling
6464
/// attempts.
6565
/// If nil, polling will wait at least 1 millisecond between polling
6666
/// attempts.
67-
/// `interval` must be greater than 0.
67+
/// If specified, `interval` must be greater than 0.
6868
public static func pollingConfirmationDefaults(
6969
until stopCondition: PollingStopCondition,
7070
within duration: Duration? = nil,

0 commit comments

Comments
 (0)