File tree 1 file changed +5
-5
lines changed
Tests/AWSLambdaRuntimeCoreTests 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -104,10 +104,10 @@ final actor LambdaMockClient: LambdaRuntimeClientProtocol {
104
104
case fail( LambdaError )
105
105
}
106
106
107
- enum CancelProcessingAction {
107
+ enum FailProcessingAction {
108
108
case none
109
109
110
- case cancelContinuation ( CheckedContinuation < ByteBuffer , any Error > )
110
+ case throwContinuation ( CheckedContinuation < ByteBuffer , any Error > )
111
111
}
112
112
113
113
mutating func next( _ eventArrivedHandler: CheckedContinuation < Invocation , any Error > ) -> NextAction {
@@ -191,12 +191,12 @@ final actor LambdaMockClient: LambdaRuntimeClientProtocol {
191
191
}
192
192
}
193
193
194
- mutating func cancelProcessing( ) -> CancelProcessingAction {
194
+ mutating func cancelProcessing( ) -> FailProcessingAction {
195
195
switch self . state {
196
196
case . initialState, . waitingForNextEvent:
197
197
return . none
198
198
case . handlerIsProcessing( _, let eventProcessedHandler) :
199
- return . cancelContinuation ( eventProcessedHandler)
199
+ return . throwContinuation ( eventProcessedHandler)
200
200
}
201
201
}
202
202
}
@@ -287,7 +287,7 @@ final actor LambdaMockClient: LambdaRuntimeClientProtocol {
287
287
switch self . stateMachine. cancelProcessing ( ) {
288
288
case . none:
289
289
break
290
- case . cancelContinuation ( let continuation) :
290
+ case . throwContinuation ( let continuation) :
291
291
continuation. resume ( throwing: error)
292
292
}
293
293
}
You can’t perform that action at this time.
0 commit comments