Skip to content

Commit

Permalink
[Tests] Fix self-referencing tests
Browse files Browse the repository at this point in the history
This commit adapts some test after #31044 has been merged.
  • Loading branch information
tlrx committed Jun 11, 2018
1 parent f9e8afd commit a191665
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,6 @@
source: "def x = [:] ; def y = [:] ; x.a = y ; y.a = x ; return x"

- match: { error.root_cause.0.type: "illegal_argument_exception" }
- match: { error.root_cause.0.reason: "Iterable object is self-referencing itself" }
- match: { error.root_cause.0.reason: "Iterable object is self-referencing itself (ScriptBytesValues value)" }
- match: { error.type: "search_phase_execution_exception" }
- match: { error.reason: "all shards failed" }
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
- match: { watch_record.state: "executed" }
- match: { watch_record.result.actions.0.status: "failure" }
- match: { watch_record.result.actions.0.error.caused_by.caused_by.type: "illegal_argument_exception" }
- match: { watch_record.result.actions.0.error.caused_by.caused_by.reason: "Iterable object is self-referencing itself" }
- match: { watch_record.result.actions.0.error.caused_by.caused_by.reason: "Iterable object is self-referencing itself (CustomReflectionObjectHandler stringify)" }

- do:
catch: bad_request
Expand Down

0 comments on commit a191665

Please sign in to comment.