@@ -34,7 +34,10 @@ class LambdaHandlerTest: XCTestCase {
34
34
}
35
35
36
36
let maxTimes = Int . random ( in: 10 ... 20 )
37
- let configuration = LambdaConfiguration ( lifecycle: . init( maxTimes: maxTimes) , runtimeEngine: . init( address: " 127.0.0.1: \( port) " ) )
37
+ let configuration = LambdaConfiguration (
38
+ lifecycle: . init( maxTimes: maxTimes) ,
39
+ runtimeEngine: . init( address: " 127.0.0.1: \( port) " )
40
+ )
38
41
let result = Lambda . run ( configuration: configuration, handlerType: TestBootstrapHandler . self)
39
42
assertLambdaRuntimeResult ( result, shouldHaveRun: maxTimes)
40
43
}
@@ -60,7 +63,10 @@ class LambdaHandlerTest: XCTestCase {
60
63
}
61
64
62
65
let maxTimes = Int . random ( in: 10 ... 20 )
63
- let configuration = LambdaConfiguration ( lifecycle: . init( maxTimes: maxTimes) , runtimeEngine: . init( address: " 127.0.0.1: \( port) " ) )
66
+ let configuration = LambdaConfiguration (
67
+ lifecycle: . init( maxTimes: maxTimes) ,
68
+ runtimeEngine: . init( address: " 127.0.0.1: \( port) " )
69
+ )
64
70
let result = Lambda . run ( configuration: configuration, handlerType: TestBootstrapHandler . self)
65
71
assertLambdaRuntimeResult ( result, shouldHaveRun: maxTimes)
66
72
}
@@ -89,7 +95,10 @@ class LambdaHandlerTest: XCTestCase {
89
95
}
90
96
91
97
let maxTimes = Int . random ( in: 10 ... 20 )
92
- let configuration = LambdaConfiguration ( lifecycle: . init( maxTimes: maxTimes) , runtimeEngine: . init( address: " 127.0.0.1: \( port) " ) )
98
+ let configuration = LambdaConfiguration (
99
+ lifecycle: . init( maxTimes: maxTimes) ,
100
+ runtimeEngine: . init( address: " 127.0.0.1: \( port) " )
101
+ )
93
102
let result = Lambda . run ( configuration: configuration, handlerType: TestBootstrapHandler . self)
94
103
assertLambdaRuntimeResult ( result, shouldHaveRun: maxTimes)
95
104
}
@@ -116,7 +125,10 @@ class LambdaHandlerTest: XCTestCase {
116
125
}
117
126
118
127
let maxTimes = Int . random ( in: 10 ... 20 )
119
- let configuration = LambdaConfiguration ( lifecycle: . init( maxTimes: maxTimes) , runtimeEngine: . init( address: " 127.0.0.1: \( port) " ) )
128
+ let configuration = LambdaConfiguration (
129
+ lifecycle: . init( maxTimes: maxTimes) ,
130
+ runtimeEngine: . init( address: " 127.0.0.1: \( port) " )
131
+ )
120
132
let result = Lambda . run ( configuration: configuration, handlerType: TestBootstrapHandler . self)
121
133
assertLambdaRuntimeResult ( result, shouldFailWithError: TestError ( " kaboom " ) )
122
134
}
@@ -135,7 +147,10 @@ class LambdaHandlerTest: XCTestCase {
135
147
}
136
148
137
149
let maxTimes = Int . random ( in: 1 ... 10 )
138
- let configuration = LambdaConfiguration ( lifecycle: . init( maxTimes: maxTimes) , runtimeEngine: . init( address: " 127.0.0.1: \( port) " ) )
150
+ let configuration = LambdaConfiguration (
151
+ lifecycle: . init( maxTimes: maxTimes) ,
152
+ runtimeEngine: . init( address: " 127.0.0.1: \( port) " )
153
+ )
139
154
let result = Lambda . run ( configuration: configuration, handlerType: Handler . self)
140
155
assertLambdaRuntimeResult ( result, shouldHaveRun: maxTimes)
141
156
}
@@ -152,7 +167,10 @@ class LambdaHandlerTest: XCTestCase {
152
167
}
153
168
154
169
let maxTimes = Int . random ( in: 1 ... 10 )
155
- let configuration = LambdaConfiguration ( lifecycle: . init( maxTimes: maxTimes) , runtimeEngine: . init( address: " 127.0.0.1: \( port) " ) )
170
+ let configuration = LambdaConfiguration (
171
+ lifecycle: . init( maxTimes: maxTimes) ,
172
+ runtimeEngine: . init( address: " 127.0.0.1: \( port) " )
173
+ )
156
174
157
175
let result = Lambda . run ( configuration: configuration, handlerType: Handler . self)
158
176
assertLambdaRuntimeResult ( result, shouldHaveRun: maxTimes)
@@ -172,7 +190,10 @@ class LambdaHandlerTest: XCTestCase {
172
190
}
173
191
174
192
let maxTimes = Int . random ( in: 1 ... 10 )
175
- let configuration = LambdaConfiguration ( lifecycle: . init( maxTimes: maxTimes) , runtimeEngine: . init( address: " 127.0.0.1: \( port) " ) )
193
+ let configuration = LambdaConfiguration (
194
+ lifecycle: . init( maxTimes: maxTimes) ,
195
+ runtimeEngine: . init( address: " 127.0.0.1: \( port) " )
196
+ )
176
197
let result = Lambda . run ( configuration: configuration, handlerType: Handler . self)
177
198
assertLambdaRuntimeResult ( result, shouldHaveRun: maxTimes)
178
199
}
@@ -197,7 +218,10 @@ class LambdaHandlerTest: XCTestCase {
197
218
}
198
219
199
220
let maxTimes = Int . random ( in: 1 ... 10 )
200
- let configuration = LambdaConfiguration ( lifecycle: . init( maxTimes: maxTimes) , runtimeEngine: . init( address: " 127.0.0.1: \( port) " ) )
221
+ let configuration = LambdaConfiguration (
222
+ lifecycle: . init( maxTimes: maxTimes) ,
223
+ runtimeEngine: . init( address: " 127.0.0.1: \( port) " )
224
+ )
201
225
let result = Lambda . run ( configuration: configuration, handlerType: Handler . self)
202
226
assertLambdaRuntimeResult ( result, shouldHaveRun: maxTimes)
203
227
}
@@ -220,7 +244,10 @@ class LambdaHandlerTest: XCTestCase {
220
244
}
221
245
222
246
let maxTimes = Int . random ( in: 1 ... 10 )
223
- let configuration = LambdaConfiguration ( lifecycle: . init( maxTimes: maxTimes) , runtimeEngine: . init( address: " 127.0.0.1: \( port) " ) )
247
+ let configuration = LambdaConfiguration (
248
+ lifecycle: . init( maxTimes: maxTimes) ,
249
+ runtimeEngine: . init( address: " 127.0.0.1: \( port) " )
250
+ )
224
251
let result = Lambda . run ( configuration: configuration, handlerType: Handler . self)
225
252
assertLambdaRuntimeResult ( result, shouldHaveRun: maxTimes)
226
253
}
@@ -243,7 +270,10 @@ class LambdaHandlerTest: XCTestCase {
243
270
}
244
271
245
272
let maxTimes = Int . random ( in: 1 ... 10 )
246
- let configuration = LambdaConfiguration ( lifecycle: . init( maxTimes: maxTimes) , runtimeEngine: . init( address: " 127.0.0.1: \( port) " ) )
273
+ let configuration = LambdaConfiguration (
274
+ lifecycle: . init( maxTimes: maxTimes) ,
275
+ runtimeEngine: . init( address: " 127.0.0.1: \( port) " )
276
+ )
247
277
let result = Lambda . run ( configuration: configuration, handlerType: Handler . self)
248
278
assertLambdaRuntimeResult ( result, shouldHaveRun: maxTimes)
249
279
}
0 commit comments