@@ -73,7 +73,8 @@ Deno.test('cache', async (t) => {
73
73
return res . body ?. cancel ( )
74
74
} )
75
75
)
76
- . finally ( async ( ) => await harness . stop ( ) )
76
+ . then ( ( ) => harness . stop ( ) )
77
+ . catch ( ( ) => harness . stop ( ) )
77
78
} )
78
79
79
80
await t . step ( 'should pass name route param to core' , async ( ) => {
@@ -86,7 +87,8 @@ Deno.test('cache', async (t) => {
86
87
assertEquals ( body . name , 'movies' )
87
88
} )
88
89
)
89
- . finally ( async ( ) => await harness . stop ( ) )
90
+ . then ( ( ) => harness . stop ( ) )
91
+ . catch ( ( ) => harness . stop ( ) )
90
92
} )
91
93
} )
92
94
@@ -103,7 +105,8 @@ Deno.test('cache', async (t) => {
103
105
return res . body ?. cancel ( )
104
106
} )
105
107
)
106
- . finally ( async ( ) => await harness . stop ( ) )
108
+ . then ( ( ) => harness . stop ( ) )
109
+ . catch ( ( ) => harness . stop ( ) )
107
110
} )
108
111
109
112
await t . step ( 'should pass name route param to core' , async ( ) => {
@@ -116,7 +119,8 @@ Deno.test('cache', async (t) => {
116
119
assertEquals ( body . name , 'movies' )
117
120
} )
118
121
)
119
- . finally ( async ( ) => await harness . stop ( ) )
122
+ . then ( ( ) => harness . stop ( ) )
123
+ . catch ( ( ) => harness . stop ( ) )
120
124
} )
121
125
} )
122
126
@@ -148,7 +152,8 @@ Deno.test('cache', async (t) => {
148
152
} ,
149
153
)
150
154
)
151
- . finally ( async ( ) => await harness . stop ( ) )
155
+ . then ( ( ) => harness . stop ( ) )
156
+ . catch ( ( ) => harness . stop ( ) )
152
157
} )
153
158
154
159
await t . step (
@@ -174,7 +179,8 @@ Deno.test('cache', async (t) => {
174
179
assertEquals ( body . pattern , 'foo*' )
175
180
} )
176
181
)
177
- . finally ( async ( ) => await harness . stop ( ) )
182
+ . then ( ( ) => harness . stop ( ) )
183
+ . catch ( ( ) => harness . stop ( ) )
178
184
} ,
179
185
)
180
186
} )
@@ -199,7 +205,8 @@ Deno.test('cache', async (t) => {
199
205
return res . body ?. cancel ( )
200
206
} )
201
207
)
202
- . finally ( async ( ) => await harness . stop ( ) )
208
+ . then ( ( ) => harness . stop ( ) )
209
+ . catch ( ( ) => harness . stop ( ) )
203
210
} )
204
211
205
212
await t . step ( 'should pass name route param and body to core' , async ( ) => {
@@ -222,7 +229,8 @@ Deno.test('cache', async (t) => {
222
229
assertEquals ( body . ttl , '1m' )
223
230
} )
224
231
)
225
- . finally ( async ( ) => await harness . stop ( ) )
232
+ . then ( ( ) => harness . stop ( ) )
233
+ . catch ( ( ) => harness . stop ( ) )
226
234
} )
227
235
} )
228
236
@@ -239,7 +247,8 @@ Deno.test('cache', async (t) => {
239
247
return res . body ?. cancel ( )
240
248
} )
241
249
)
242
- . finally ( async ( ) => await harness . stop ( ) )
250
+ . then ( ( ) => harness . stop ( ) )
251
+ . catch ( ( ) => harness . stop ( ) )
243
252
} )
244
253
245
254
await t . step ( 'should pass name and key route params to core' , async ( ) => {
@@ -253,7 +262,8 @@ Deno.test('cache', async (t) => {
253
262
assertEquals ( body . doc . name , 'movies' )
254
263
} )
255
264
)
256
- . finally ( async ( ) => await harness . stop ( ) )
265
+ . then ( ( ) => harness . stop ( ) )
266
+ . catch ( ( ) => harness . stop ( ) )
257
267
} )
258
268
259
269
await t . step ( 'should pass isLegacyGetEnabled to core' , async ( ) => {
@@ -270,7 +280,8 @@ Deno.test('cache', async (t) => {
270
280
assertEquals ( withLegacy . doc . isLegacyGetEnabled , true )
271
281
} )
272
282
)
273
- . finally ( async ( ) => await harness . stop ( ) )
283
+ . then ( ( ) => harness . stop ( ) )
284
+ . catch ( ( ) => harness . stop ( ) )
274
285
} )
275
286
} )
276
287
@@ -290,7 +301,8 @@ Deno.test('cache', async (t) => {
290
301
return res . body ?. cancel ( )
291
302
} )
292
303
)
293
- . finally ( async ( ) => await harness . stop ( ) )
304
+ . then ( ( ) => harness . stop ( ) )
305
+ . catch ( ( ) => harness . stop ( ) )
294
306
} )
295
307
296
308
await t . step (
@@ -311,7 +323,8 @@ Deno.test('cache', async (t) => {
311
323
assertEquals ( body . ttl , '1m' )
312
324
} )
313
325
)
314
- . finally ( async ( ) => await harness . stop ( ) )
326
+ . then ( ( ) => harness . stop ( ) )
327
+ . catch ( ( ) => harness . stop ( ) )
315
328
} ,
316
329
)
317
330
} )
@@ -329,7 +342,8 @@ Deno.test('cache', async (t) => {
329
342
return res . body ?. cancel ( )
330
343
} )
331
344
)
332
- . finally ( async ( ) => await harness . stop ( ) )
345
+ . then ( ( ) => harness . stop ( ) )
346
+ . catch ( ( ) => harness . stop ( ) )
333
347
} )
334
348
335
349
await t . step ( 'should pass name and key route params to core' , async ( ) => {
@@ -343,7 +357,8 @@ Deno.test('cache', async (t) => {
343
357
assertEquals ( body . key , 'key' )
344
358
} )
345
359
)
346
- . finally ( async ( ) => await harness . stop ( ) )
360
+ . then ( ( ) => harness . stop ( ) )
361
+ . catch ( ( ) => harness . stop ( ) )
347
362
} )
348
363
} )
349
364
} )
0 commit comments