Skip to content

Commit d37246a

Browse files
committed
remove testing queue
1 parent eaa30d2 commit d37246a

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

Tests/AsyncQueueTests/ActorQueueTests.swift

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ struct ActorQueueTests {
130130
try await #require(lastTask).value
131131
}
132132

133-
@TestingQueue
134133
@Test
135134
func mainTask_sendsEventsInOrder() async throws {
136135
var lastTask: Task<Void, Error>?
@@ -143,7 +142,6 @@ struct ActorQueueTests {
143142
try await #require(lastTask).value
144143
}
145144

146-
@TestingQueue
147145
@Test
148146
func mainThrowingTask_sendsEventsInOrder() async throws {
149147
var lastTask: Task<Void, Error>?
@@ -218,7 +216,6 @@ struct ActorQueueTests {
218216
}.value
219217
}
220218

221-
@TestingQueue
222219
@Test
223220
func mainTask_allowsReentrancy() async {
224221
await Task(on: MainActor.queue) { [counter] in
@@ -229,7 +226,6 @@ struct ActorQueueTests {
229226
}.value
230227
}
231228

232-
@TestingQueue
233229
@Test
234230
func mainThrowingTask_allowsReentrancy() async throws {
235231
try await Task(on: MainActor.queue) { [counter] in
@@ -314,7 +310,6 @@ struct ActorQueueTests {
314310
try? await task.value
315311
}
316312

317-
@TestingQueue
318313
@Test
319314
func mainTask_canBeCancelled() async {
320315
let semaphore = Semaphore()
@@ -407,10 +402,3 @@ struct ActorQueueTests {
407402

408403
@Sendable private func doWork() throws -> Void {}
409404
}
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

Comments
 (0)