From e686963b249bcfdfbdcf3e54e2d73cdb73d0939f Mon Sep 17 00:00:00 2001 From: Philip Lykke Carlsen Date: Fri, 30 Jun 2023 14:28:46 +0200 Subject: [PATCH] fix(tests): Don't assert on error message PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9726 GitOrigin-RevId: 7120b2a1f32b44c5fb4aae3387859e50b58b2a33 --- .../api-tests/src/Test/Mutations/Insert/NestedSpec.hs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/server/lib/api-tests/src/Test/Mutations/Insert/NestedSpec.hs b/server/lib/api-tests/src/Test/Mutations/Insert/NestedSpec.hs index 8e27182ddb97f..4e5a8ce0ea313 100644 --- a/server/lib/api-tests/src/Test/Mutations/Insert/NestedSpec.hs +++ b/server/lib/api-tests/src/Test/Mutations/Insert/NestedSpec.hs @@ -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 @@ -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