Skip to content

Commit e3a3851

Browse files
committed
fix integration tests
1 parent 299b9bc commit e3a3851

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Examples/BackgroundTasks/Sources/main.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,5 @@ struct BackgroundProcessingHandler: LambdaWithBackgroundProcessingHandler {
5353
}
5454

5555
let adapter = LambdaCodableAdapter(handler: BackgroundProcessingHandler())
56-
let runtime = LambdaRuntime.init(handler: adapter)
56+
let runtime = try LambdaRuntime.init(handler: adapter)
5757
try await runtime.run()

Examples/Streaming/Sources/main.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ struct SendNumbersWithPause: StreamingLambdaHandler {
3232
}
3333
}
3434

35-
let runtime = LambdaRuntime.init(handler: SendNumbersWithPause())
35+
let runtime = try LambdaRuntime.init(handler: SendNumbersWithPause())
3636
try await runtime.run()

readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ struct SendNumbersWithPause: StreamingLambdaHandler {
248248
}
249249
}
250250

251-
let runtime = LambdaRuntime.init(handler: SendNumbersWithPause())
251+
let runtime = try LambdaRuntime.init(handler: SendNumbersWithPause())
252252
try await runtime.run()
253253
```
254254

@@ -328,7 +328,7 @@ struct BackgroundProcessingHandler: LambdaWithBackgroundProcessingHandler {
328328
}
329329

330330
let adapter = LambdaCodableAdapter(handler: BackgroundProcessingHandler())
331-
let runtime = LambdaRuntime.init(handler: adapter)
331+
let runtime = try LambdaRuntime.init(handler: adapter)
332332
try await runtime.run()
333333
```
334334

0 commit comments

Comments
 (0)