Skip to content

Commit 88f7fd0

Browse files
committed
Rename ActorQueue/MainActor tests to reflect concurrent execution
ActorQueues are re-entrant, so tasks execute concurrently rather than pending. Renamed tests from 'cancelsCurrentlyExecutingAndPendingTasks' to 'cancelsAllConcurrentlyExecutingTasks' to accurately describe behavior.
1 parent c1fbce7 commit 88f7fd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/AsyncQueueTests/CancellableQueueTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ struct CancellableQueueTests {
168168
}
169169

170170
@Test
171-
func cancelTasks_actorQueue_cancelsCurrentlyExecutingAndPendingTasks() async {
171+
func cancelTasks_actorQueue_cancelsAllConcurrentlyExecutingTasks() async {
172172
let actorQueue = ActorQueue<Counter>()
173173
let counter = Counter()
174174
actorQueue.adoptExecutionContext(of: counter)
@@ -275,7 +275,7 @@ struct CancellableQueueTests {
275275
}
276276

277277
@Test
278-
func cancelTasks_mainActorQueue_cancelsCurrentlyExecutingAndPendingTasks() async {
278+
func cancelTasks_mainActorQueue_cancelsAllConcurrentlyExecutingTasks() async {
279279
let systemUnderTest = CancellableQueue(underlyingQueue: MainActor.queue)
280280
let task1Started = Semaphore()
281281
let task2Started = Semaphore()

0 commit comments

Comments
 (0)