File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff line change 1313//===----------------------------------------------------------------------===//
1414
1515@_spi ( DispatchAsync) import DispatchAsync
16+ import Testing
17+
1618import func Foundation. sin
19+
1720#if !os(WASI)
1821import class Foundation. Thread
1922#endif
20- import Testing
2123
2224private typealias DispatchGroup = DispatchAsync . DispatchGroup
2325private 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-
You can’t perform that action at this time.
0 commit comments