From 243e4f0408ceaeb4313637ce2975d2bd360030d6 Mon Sep 17 00:00:00 2001 From: laurenceisla Date: Thu, 16 Sep 2021 22:03:35 -0500 Subject: [PATCH] test: correct limit proc results tests (#1951) Query params where being appended using `?` instead of `&` --- test/Feature/RpcSpec.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Feature/RpcSpec.hs b/test/Feature/RpcSpec.hs index e44c332f2a..0ef6a2f299 100644 --- a/test/Feature/RpcSpec.hs +++ b/test/Feature/RpcSpec.hs @@ -178,11 +178,11 @@ spec actualPgVersion = { matchHeaders = [matchContentTypeJson] } it "can limit proc results" $ do - post "/rpc/getallprojects?id=gt.1&id=lt.5&select=id?limit=2&offset=1" [json| {} |] + post "/rpc/getallprojects?id=gt.1&id=lt.5&select=id&limit=2&offset=1" [json| {} |] `shouldRespondWith` [json|[{"id":3},{"id":4}]|] { matchStatus = 200 , matchHeaders = ["Content-Range" <:> "1-2/*"] } - get "/rpc/getallprojects?id=gt.1&id=lt.5&select=id?limit=2&offset=1" + get "/rpc/getallprojects?id=gt.1&id=lt.5&select=id&limit=2&offset=1" `shouldRespondWith` [json|[{"id":3},{"id":4}]|] { matchStatus = 200 , matchHeaders = ["Content-Range" <:> "1-2/*"] }