Skip to content

Commit

Permalink
tests: don't specify openapi root result
Browse files Browse the repository at this point in the history
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:
- #2292 (comment)
- #1698
  • Loading branch information
robx committed Jun 7, 2022
1 parent 807364b commit 09f3e09
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/spec/Feature/OpenApi/RootSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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] }

0 comments on commit 09f3e09

Please sign in to comment.