Commit f13ab6e
authored
Ensure IndicesOptions are mutated for GetInferenceFieldsActionRequestTests (#138163)
When `IndicesOptions` are mutated, we may produce `null`. The request constructor
sets indices options to the default ones when the argument is `null`.
Thus, if the original instance had the default `IndicesOptions` to begin with,
we will end up with a mutation that is identical.
This fixes this by generating a new random `IndicesOptions` object in the case above.
Closed #1381341 parent 469cd7d commit f13ab6e
File tree
1 file changed
+7
-1
lines changed- x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/action
1 file changed
+7
-1
lines changedLines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
94 | 100 | | |
95 | 101 | | |
96 | 102 | | |
| |||
0 commit comments