Skip to content

Commit

Permalink
Remove unused testCheckFirstRecoverabilityTimeSet function
Browse files Browse the repository at this point in the history
  • Loading branch information
vrmiguel committed Aug 18, 2024
1 parent 49e6a1e commit afda69d
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions internal/provider/instance_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,6 @@ import (
"github.com/hashicorp/terraform-plugin-testing/terraform"
)

func testCheckFirstRecoverabilityTimeSet(resourceName string) resource.TestCheckFunc {
return func(s *terraform.State) error {
retryInterval := 30 * time.Second
timeout := 10 * time.Minute
startTime := time.Now()

for {
err := resource.TestCheckResourceAttrSet(resourceName, "first_recoverability_time")(s)
if err == nil {
// Test passed
return nil
}

if time.Since(startTime) > timeout {
return fmt.Errorf("Timeout reached waiting for first_recoverability_time to be set: %v", err)
}

time.Sleep(retryInterval)
}
}
}

func TestTemboInstanceResource(t *testing.T) {

instanceName := generateInstanceName()
Expand Down

0 comments on commit afda69d

Please sign in to comment.