@@ -130,7 +130,6 @@ struct ActorQueueTests {
130
130
try await #require( lastTask) . value
131
131
}
132
132
133
- @TestingQueue
134
133
@Test
135
134
func mainTask_sendsEventsInOrder( ) async throws {
136
135
var lastTask : Task < Void , Error > ?
@@ -143,7 +142,6 @@ struct ActorQueueTests {
143
142
try await #require( lastTask) . value
144
143
}
145
144
146
- @TestingQueue
147
145
@Test
148
146
func mainThrowingTask_sendsEventsInOrder( ) async throws {
149
147
var lastTask : Task < Void , Error > ?
@@ -218,7 +216,6 @@ struct ActorQueueTests {
218
216
} . value
219
217
}
220
218
221
- @TestingQueue
222
219
@Test
223
220
func mainTask_allowsReentrancy( ) async {
224
221
await Task ( on: MainActor . queue) { [ counter] in
@@ -229,7 +226,6 @@ struct ActorQueueTests {
229
226
} . value
230
227
}
231
228
232
- @TestingQueue
233
229
@Test
234
230
func mainThrowingTask_allowsReentrancy( ) async throws {
235
231
try await Task ( on: MainActor . queue) { [ counter] in
@@ -314,7 +310,6 @@ struct ActorQueueTests {
314
310
try ? await task. value
315
311
}
316
312
317
- @TestingQueue
318
313
@Test
319
314
func mainTask_canBeCancelled( ) async {
320
315
let semaphore = Semaphore ( )
@@ -407,10 +402,3 @@ struct ActorQueueTests {
407
402
408
403
@Sendable private func doWork( ) throws -> Void { }
409
404
}
410
-
411
- /// A global actor that runs off of `main`, where tests may otherwise deadlock due to waiting for `main` from `main`.
412
- @globalActor
413
- private struct TestingQueue {
414
- fileprivate actor Shared { }
415
- fileprivate static let shared = Shared ( )
416
- }
0 commit comments