Skip to content

Commit aa35626

Browse files
committed
Polling Confirmations: Documentation and spelling mistakes
1 parent 8c03a32 commit aa35626

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

Sources/Testing/Traits/PollingConfigurationTrait.swift

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@ public struct PollingConfirmationConfigurationTrait: TestTrait, SuiteTrait {
2020
public var stopCondition: PollingStopCondition
2121

2222
/// How long to continue polling for. If nil, this will fall back to the next
23-
/// inner-most `PollingUntilStopsPassingConfigurationTrait.duration` value.
23+
/// inner-most `PollingConfirmationConfigurationTrait.duration` value for this
24+
/// stop condition.
2425
/// If no non-nil values are found, then it will use 1 second.
2526
public var duration: Duration?
2627

2728
/// The minimum amount of time to wait between polling attempts. If nil, this
28-
/// will fall back to earlier `PollingUntilStopsPassingConfigurationTrait.interval`
29-
/// values. If no non-nil values are found, then it will use 1 millisecond.
29+
/// will fall back to earlier `PollingConfirmationConfigurationTrait.interval`
30+
/// values for this stop condition. If no non-nil values are found, then it
31+
/// will use 1 millisecond.
3032
public var interval: Duration?
3133

3234
public var isRecursive: Bool { true }
@@ -53,7 +55,7 @@ extension Trait where Self == PollingConfirmationConfigurationTrait {
5355
/// This value may not correspond to the wall-clock time that polling
5456
/// lasts for, especially on highly-loaded systems with a lot of tests
5557
/// running.
56-
/// if nil, polling will be attempted for approximately 1 second.
58+
/// If nil, polling will be attempted for approximately 1 second.
5759
/// `duration` must be greater than 0.
5860
/// - interval: The minimum amount of time to wait between polling
5961
/// attempts.

Tests/TestingTests/PollingTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ struct PollingConfirmationTests {
256256
}
257257

258258
@available(_clockAPI, *)
259-
@Test("if the closures starts off as true, but becomes false")
259+
@Test("if the closure starts off as true, but becomes false")
260260
func changingFromFail() async {
261261
let incrementor = Incrementor()
262262
let issues = await runTest {
@@ -347,7 +347,7 @@ struct PollingConfirmationTests {
347347

348348
@available(_clockAPI, *)
349349
@Test(
350-
"When test configuration porvided, uses the test configuration",
350+
"When test configuration provided, uses the test configuration",
351351
.pollingConfirmationDefaults(
352352
until: .stopsPassing,
353353
within: .milliseconds(10)

0 commit comments

Comments
 (0)