@@ -323,7 +323,7 @@ struct RouterGraphTests {
323
323
324
324
//when
325
325
#expect( throws: Never . self) { try graph. find ( method: method, path: pathToTest) }
326
- let ( handler, metadata) = try graph. find ( method: method, path: pathToTest )
326
+ let ( handler, metadata) = try graph. find ( method: method, path: pathToTest)
327
327
#expect( metadata. count == 0 )
328
328
#expect( handler != nil )
329
329
}
@@ -333,7 +333,7 @@ struct RouterGraphTests {
333
333
arguments: [
334
334
" /element3/value1/element4 " ,
335
335
" /element3/value2/element4 " ,
336
- " /element3/value1/element4?param1=value1 "
336
+ " /element3/value1/element4?param1=value1 " ,
337
337
]
338
338
)
339
339
func testFindHandler2(
@@ -345,10 +345,14 @@ struct RouterGraphTests {
345
345
let graph = prepareGraphForFind ( for: method)
346
346
347
347
//when
348
- #expect( throws: Never . self) { try graph. find ( method: method, path: pathToTest) }
349
- let ( handler, metadata) = try graph. find ( method: method, path: pathToTest)
350
- #expect( metadata. count == 1 )
351
- #expect( handler != nil )
348
+ #expect( throws: Never . self) {
349
+ let ( handler, metadata) = try graph. find ( method: method, path: pathToTest)
350
+
351
+ // then (we can not test if the query string param have been decoded, that's the job of the openapi runtime.)
352
+ #expect( metadata. count == 1 )
353
+ #expect( handler != nil )
354
+ }
355
+
352
356
}
353
357
354
358
@Test ( " Find handler 3 " )
0 commit comments