terraform icon indicating copy to clipboard operation
terraform copied to clipboard

TestJSONHook_create fails for 1.6.6

Open hashworks opened this issue 1 year ago • 9 comments

Terraform Version

1.6.6

Terraform Configuration Files

None, test fails

Debug Output

--- FAIL: TestJSONHook_create (0.01s)
    hook_json_test.go:184: unexpected output on line 4:
          map[string]any{
          	"@level": string("info"),
          	"@message": strings.Join({
          		"test_instance.boop: Still creating... [",
        - 		"1",
        + 		"2",
          		"0s elapsed]",
          	}, ""),
          	"@module": string("terraform.ui"),
          	"hook": map[string]any{
          		"action":          string("create"),
        - 		"elapsed_seconds": float64(10),
        + 		"elapsed_seconds": float64(20),
          		"resource":        map[string]any{"addr": string("test_instance.boop"), "implied_provider": string("test"), "module": string(""), "resource": string("test_instance.boop"), ...},
          	},
          	"type": string("apply_progress"),
          }
FAIL

Expected Behavior

All tests are green.

Actual Behavior

Test TestJSONHook_create fails.

Steps to Reproduce

git checkout v1.6.6
go mod download
go build
go test -mod=readonly ./...

Additional Context

Golang version 1.21.5.

I'm the maintainer of the Arch Linux terraform package, this blocks the 1.6.6 release.

References

No response

hashworks avatar Dec 14 '23 16:12 hashworks