configs: update values file invalid syntax test for new HCL behavior

The error-handling behavior of the HCL parser was improved, which causes
the number of diagnostics and the diagnostics messages to be different
in cases where a block-like introduction is given but without any
following body.
This commit is contained in:
Martin Atkins 2018-03-08 11:17:39 -08:00
parent 59a49c6b3f
commit 7549ce15f0
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ func TestParserLoadValuesFile(t *testing.T) {
"invalid-syntax.tfvars": {
"foo bar baz\n",
map[string]cty.Value{},
1, // attribute or block definition required
2, // invalid block definition, and unexpected foo block (the latter due to parser recovery behavior)
},
"block.tfvars": {
"foo = true\ninvalid {\n}\n",