[Tests] Fix self-referencing tests

This commit adapts some test after #31044 has been merged.
This commit is contained in:
Tanguy Leroux 2018-06-11 12:45:27 +02:00
parent f9e8afd357
commit a1916658a9
2 changed files with 2 additions and 2 deletions

View File

@ -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" }

View File

@ -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