From 7549ce15f04d29ac71877044fc1e43b7c95931f0 Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Thu, 8 Mar 2018 11:17:39 -0800 Subject: [PATCH] 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. --- configs/parser_values_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/parser_values_test.go b/configs/parser_values_test.go index 9c95b65f25..b26901bfd6 100644 --- a/configs/parser_values_test.go +++ b/configs/parser_values_test.go @@ -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",