File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Tests/AWSLambdaRuntimeTests Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -276,11 +276,11 @@ struct LambdaRuntimeClientTests {
276
276
let _ = try await runtimeClient. nextInvocation ( )
277
277
Issue . record ( " Expected connection error but got successful invocation " )
278
278
279
- // Verify we get an error when the connection is closed.
280
- // the error is either a ChannelError or a LambdaRuntimeError
281
279
} catch let error as LambdaRuntimeError {
280
+ // Verify we get an error when the connection is closed.
282
281
#expect( error. code == . connectionToControlPlaneLost)
283
282
} catch let error as ChannelError {
283
+ // the error is either a ChannelError or a LambdaRuntimeError
284
284
#expect( error == . ioOnClosedChannel)
285
285
} catch {
286
286
Issue . record ( " Unexpected error type: \( error) " )
You can’t perform that action at this time.
0 commit comments