From 09f3e09c96b77866575c7ac99c0593b3af786a56 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Fri, 3 Jun 2022 16:55:21 +0200 Subject: [PATCH] tests: don't specify openapi root result Whereas the test used to specify a body of [{"qiName":"referrals","qiSchema":"test"},"private"] we see both [{"qiName":"authors_w_entities","qiSchema":"test"},"test"] and [{"qiName":"organizations","qiSchema":"test"},"test"] on the GHC 9.2 upgrade PR. This changes the test to no longer expect a particular body. Compare: - https://github.com/PostgREST/postgrest/pull/2292#issuecomment-1146160792 - https://github.com/PostgREST/postgrest/issues/1698 --- test/spec/Feature/OpenApi/RootSpec.hs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/spec/Feature/OpenApi/RootSpec.hs b/test/spec/Feature/OpenApi/RootSpec.hs index 420a3e6a4..b20c257d1 100644 --- a/test/spec/Feature/OpenApi/RootSpec.hs +++ b/test/spec/Feature/OpenApi/RootSpec.hs @@ -26,7 +26,5 @@ spec = it "accepts application/json" $ request methodGet "/" [("Accept", "application/json")] "" `shouldRespondWith` - [json| - [{"qiSchema":"test","qiName":"authors_w_entities"},"test"] - |] + 200 { matchHeaders = [matchContentTypeJson] }