Skip to content

Commit fa336cf

Browse files
committed
update test now that rdar://70751405 is fixed
1 parent 84b6308 commit fa336cf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/Concurrency/async_cancellation.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,13 @@ func test_cancellation_loop() async -> Int {
5353
func int() async -> Int { 42 }
5454

5555
func test_cancellation_withDeadline_in() async throws -> Int {
56-
/* missing await */ Task.withDeadline(in: .seconds(5), operation: { // FIXME: rdar://70751405 async rethrows functions are not detected as async
56+
await Task.withDeadline(in: .seconds(5), operation: {
5757
await int()
5858
})
5959
}
6060

6161
func test_cancellation_withDeadline(specificDeadline: Task.Deadline) async -> Int {
62-
/* missing `await` */
63-
Task.withDeadline(specificDeadline) { // FIXME: rdar://70751405 async rethrows functions are not detected as async
62+
await Task.withDeadline(specificDeadline) {
6463
await int()
6564
}
6665
}

0 commit comments

Comments
 (0)