File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Tests/AWSLambdaRuntimeTests Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -63,11 +63,11 @@ public final class LambdaRuntime<Handler>: @unchecked Sendable where Handler: St
6363 if original {
6464 throw LambdaRuntimeError ( code: . moreThanOneLambdaRuntimeInstance)
6565 }
66-
66+
6767 defer {
68- _isRunning. store ( false , ordering: . releasing)
68+ _isRunning. store ( false , ordering: . releasing)
6969 }
70-
70+
7171 try await self . _run ( )
7272 }
7373
Original file line number Diff line number Diff line change @@ -47,15 +47,15 @@ struct LambdaRuntimeTests {
4747 try await runtime1. run ( )
4848 }
4949 }
50-
50+
5151 // wait a small amount to ensure runtime1 task is started
5252 try await Task . sleep ( for: . seconds( 1 ) )
5353
5454 // Running the second runtime should trigger LambdaRuntimeError
5555 await #expect( throws: LambdaRuntimeError . self) {
5656 try await runtime2. run ( )
5757 }
58-
58+
5959 // cancel runtime 1 / task 1
6060 print ( " --- cancelling --- " )
6161 taskGroup. cancelAll ( )
You can’t perform that action at this time.
0 commit comments