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 147628f commit 1d79836Copy full SHA for 1d79836
Tests/AWSLambdaRuntimeCoreTests/LambdaMockClient.swift
@@ -194,7 +194,8 @@ final actor LambdaMockClient: LambdaRuntimeClientProtocol {
194
mutating func failProcessing() -> FailProcessingAction {
195
switch self.state {
196
case .initialState, .waitingForNextEvent:
197
- return .none
+ // Cannot report an error for an event if the event is not currently being processed.
198
+ fatalError()
199
case .handlerIsProcessing(_, let eventProcessedHandler):
200
return .throwContinuation(eventProcessedHandler)
201
}
0 commit comments