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 cbf9c5e commit 9a70915Copy full SHA for 9a70915
Tests/AWSLambdaRuntimeTests/LambdaRuntimeClientTests.swift
@@ -311,10 +311,13 @@ struct LambdaRuntimeClientTests {
311
} catch is CancellationError {
312
Issue.record("Runtime client did not send connection closed error")
313
} catch let error as LambdaRuntimeError {
314
+ logger.trace("LambdaRuntimeError - expected")
315
#expect(error.code == .connectionToControlPlaneLost)
316
} catch let error as ChannelError {
317
+ logger.trace("ChannelError - expected")
318
#expect(error == .ioOnClosedChannel)
319
} catch let error as IOError {
320
+ logger.trace("IOError - expected")
321
#expect(error.errnoCode == ECONNRESET || error.errnoCode == EPIPE)
322
} catch {
323
Issue.record("Unexpected error type: \(error)")
0 commit comments