hashicorp / terraform-provider-time

Utility provider that provides Time-Based Resources
https://registry.terraform.io/providers/hashicorp/time/latest
Mozilla Public License 2.0
104 stars 30 forks source link

testing: Replace state extract with new value comparers #345

Closed austinvalle closed 2 months ago

austinvalle commented 2 months ago

Ref: https://github.com/hashicorp/terraform-plugin-testing/issues/295

Here is an example failure if you remove the time.Sleep test statements now:

--- FAIL: TestAccTimeStatic_Triggers (0.88s)
    /Users/austin.valle/code/terraform-provider-time/internal/provider/resource_time_static_test.go:58: Step 3/3 error: Post-apply refresh state check(s) failed:
        expected values to differ, but they are the same: 2024-08-07T16:13:29Z == 2024-08-07T16:13:29Z
FAIL
FAIL    github.com/hashicorp/terraform-provider-time/internal/provider  1.556s
FAIL