Skip to content

Commit 9a70915

Browse files
committed
add logger trace
1 parent cbf9c5e commit 9a70915

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Tests/AWSLambdaRuntimeTests/LambdaRuntimeClientTests.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,10 +311,13 @@ struct LambdaRuntimeClientTests {
311311
} catch is CancellationError {
312312
Issue.record("Runtime client did not send connection closed error")
313313
} catch let error as LambdaRuntimeError {
314+
logger.trace("LambdaRuntimeError - expected")
314315
#expect(error.code == .connectionToControlPlaneLost)
315316
} catch let error as ChannelError {
317+
logger.trace("ChannelError - expected")
316318
#expect(error == .ioOnClosedChannel)
317319
} catch let error as IOError {
320+
logger.trace("IOError - expected")
318321
#expect(error.errnoCode == ECONNRESET || error.errnoCode == EPIPE)
319322
} catch {
320323
Issue.record("Unexpected error type: \(error)")

0 commit comments

Comments
 (0)