Skip to content

Commit 97e7fce

Browse files
committed
just check for one error, not two
1 parent 8a1bb33 commit 97e7fce

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Tests/AWSLambdaRuntimeTests/LambdaRuntimeTests.swift

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,9 @@ struct LambdaRuntimeTests {
6262
try await taskGroup.next()
6363
}
6464

65-
// cancel the other task
65+
// cancel the group to end the test
6666
taskGroup.cancelAll()
6767

68-
// get the second result (should throw a ChannelError)
69-
try await #require(throws: ChannelError.self) {
70-
try await taskGroup.next()
71-
}
72-
7368
}
7469

7570
// wait a small amount to ensure everything is cancelled and cleanup

0 commit comments

Comments
 (0)