mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-16 02:23:39 -06:00
core: TestContext2Plan_countComputedModule expectedErr
The phrasing of this message changed as part of updating it to use HCL diagnostics rather than just a string.
This commit is contained in:
parent
e6478599c6
commit
2b3b6c2407
@ -1560,7 +1560,7 @@ func TestContext2Plan_countComputedModule(t *testing.T) {
|
||||
|
||||
_, err := ctx.Plan()
|
||||
|
||||
expectedErr := "aws_instance.bar: value of 'count'"
|
||||
expectedErr := "a number is required"
|
||||
if !strings.Contains(fmt.Sprintf("%s", err), expectedErr) {
|
||||
t.Fatalf("expected err would contain %q\nerr: %s\n",
|
||||
expectedErr, err)
|
||||
|
Loading…
Reference in New Issue
Block a user