Skip to content

Commit bb90977

Browse files
committed
Fix test for this older 5.5 branch
1 parent e1ddd40 commit bb90977

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

test/Concurrency/Runtime/async_taskgroup_throw_recover.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func test_taskGroup_throws() async {
4141
return 3
4242
}
4343

44-
switch await group.nextResult() {
44+
switch /*FIXME:*/try! await group.nextResult() {
4545
case .success(let third):
4646
print("task group returning normally: \(third)")
4747
return third
@@ -53,9 +53,6 @@ func test_taskGroup_throws() async {
5353
print("task group failed to get 3")
5454
return 0
5555
}
56-
57-
print("task group returning normally: \(third)")
58-
return third
5956
}
6057

6158
fatalError("Should have thrown and handled inside the catch block")

0 commit comments

Comments
 (0)