We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0b1d57 commit 54459e0Copy full SHA for 54459e0
Tests/AWSLambdaRuntimeTests/LambdaRuntimeClientTests.swift
@@ -307,11 +307,11 @@ struct LambdaRuntimeClientTests {
307
Issue.record("Expected connection error but got successful invocation")
308
309
} catch let error as LambdaRuntimeError {
310
- // Verify we get an error when the connection is closed.
311
#expect(error.code == .connectionToControlPlaneLost)
312
} catch let error as ChannelError {
313
- // the error is either a ChannelError or a LambdaRuntimeError
314
#expect(error == .ioOnClosedChannel)
+ } catch let error as IOError {
+ #expect(error.errnoCode == ECONNRESET || error.errnoCode == EPIPE)
315
} catch {
316
Issue.record("Unexpected error type: \(error)")
317
}
0 commit comments