mirror of
https://github.com/hasura/graphql-engine.git
synced 2025-01-05 22:34:22 +03:00
7e970177c1
14 lines
788 B
Diff
14 lines
788 B
Diff
diff --git a/server/tests-py/validate.py b/server/tests-py/validate.py
|
|||
index 3eecd52a..a18b3113 100644
|
|||
--- a/server/tests-py/validate.py
|
|||
+++ b/server/tests-py/validate.py
|
|||
@@ -318,7 +318,7 @@ def assert_graphql_resp_expected(resp_orig, exp_response_orig, query, resp_hdrs=
|
|||
# If it is a batch GraphQL query, compare each individual response separately
|
|||
for (exp, out) in zip(as_list(exp_response), as_list(resp)):
|
|||
matched_ = equal_CommentedMap(exp, out)
|
|||
- if is_err_msg(exp):
|
|||
+ if is_err_msg(exp) and is_err_msg(out):
|
|||
if not matched_:
|
|||
warnings.warn("Response does not have the expected error message\n" + dump_str.getvalue())
|
|||
return resp, matched
|