Skip to content

Commit

Permalink
fix(tests): Don't assert on error message
Browse files Browse the repository at this point in the history
PR-URL: hasura/graphql-engine-mono#9726
GitOrigin-RevId: 7120b2a1f32b44c5fb4aae3387859e50b58b2a33
  • Loading branch information
plcplc authored and hasura-bot committed Jun 30, 2023
1 parent 5769049 commit e686963
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions server/lib/api-tests/src/Test/Mutations/Insert/NestedSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -477,14 +477,13 @@ tests = do

|]
_ ->
-- We're not asserting on the message text, because it has
-- changed between postgres versions.
[interpolateYaml|
errors:
- extensions:
code: constraint-violation
path: $.selectionSet.insert_hasura_bar.args.objects[0]
message: Not-NULL violation. null value in column "id" of relation "bar" violates
not-null constraint

|]

actual <- actualAct
Expand Down Expand Up @@ -558,14 +557,13 @@ tests = do

|]
_ ->
-- We're not asserting on the message text, because it has
-- changed between postgres versions.
[interpolateYaml|
errors:
- extensions:
code: constraint-violation
path: $.selectionSet.insert_hasura_baz.args.objects[0].bar_by_id_to_id.data
message: Not-NULL violation. null value in column "id" of relation "bar" violates
not-null constraint

|]

actual <- actualAct
Expand Down

0 comments on commit e686963

Please sign in to comment.