Skip to content

Commit f2d94a2

Browse files
committed
fix unit test
1 parent 9dcb4b3 commit f2d94a2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Sources/AWSLambdaRuntime/LambdaRuntimeClient.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,7 @@ final actor LambdaRuntimeClient: LambdaRuntimeClientProtocol {
348348
return handler
349349

350350
case .lostConnection:
351-
// this should never happen
352-
fatalError("Lost connection to Lambda service")
351+
throw LambdaRuntimeError(code: .connectionToControlPlaneLost)
353352
}
354353

355354
let bootstrap = ClientBootstrap(group: self.eventLoop)

0 commit comments

Comments
 (0)