Skip to content

Commit 127fe41

Browse files
committed
chore: Run swift-format.
1 parent cb8228d commit 127fe41

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Tests/DispatchAsyncTests/AsyncSemaphoreTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func asyncSemaphoreWaitSignal() async throws {
4141
// Allow the task a few cycles to reach the initial semaphore.wait()
4242
try? await Task.sleep(nanoseconds: 1_000)
4343

44-
#expect(!didEnterCriticalSection) // should still be waiting
44+
#expect(!didEnterCriticalSection) // should still be waiting
4545

4646
// Now release the semaphore – the waiter should proceed
4747
await semaphore.signal()
@@ -52,7 +52,7 @@ func asyncSemaphoreWaitSignal() async throws {
5252
// will be false below
5353
await semaphore.wait()
5454

55-
#expect(didEnterCriticalSection) // waiter must have run
55+
#expect(didEnterCriticalSection) // waiter must have run
5656
}
5757

5858
@Test func basicAsyncSemaphoreTest() async throws {

Tests/DispatchAsyncTests/DispatchGroupTests.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@
1313
//===----------------------------------------------------------------------===//
1414

1515
@_spi(DispatchAsync) import DispatchAsync
16+
import Testing
17+
1618
import func Foundation.sin
19+
1720
#if !os(WASI)
1821
import class Foundation.Thread
1922
#endif
20-
import Testing
2123

2224
private typealias DispatchGroup = DispatchAsync.DispatchGroup
2325
private typealias DispatchQueue = DispatchAsync.DispatchQueue
@@ -143,7 +145,7 @@ struct DispatchGroupTests {
143145
let workQueue = DispatchQueue(attributes: .concurrent)
144146
let group = DispatchGroup()
145147

146-
let isolationQueue = DispatchQueue(label: "isolationQueue")
148+
let isolationQueue = DispatchQueue(label: "isolationQueue")
147149
nonisolated(unsafe) var counter = 0
148150

149151
for _ in 0 ..< iterations {
@@ -195,5 +197,3 @@ struct DispatchGroupTests {
195197
#expect(finalCount == iterations)
196198
}
197199
}
198-
199-

0 commit comments

Comments
 (0)