Skip to content

Commit

Permalink
Update resourceMailgunDomainDelete to use 5 minute timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
abydal authored and wgebis committed Mar 12, 2023
1 parent 288d938 commit e08fee6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mailgun/resource_mailgun_domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ func resourceMailgunDomainDelete(ctx context.Context, d *schema.ResourceData, me
}

// Give the destroy a chance to take effect
err = resource.RetryContext(ctx, 1*time.Minute, func() *resource.RetryError {
err = resource.RetryContext(ctx, 5*time.Minute, func() *resource.RetryError {
_, err = client.GetDomain(ctx, d.Id())
if err == nil {
log.Printf("[INFO] Retrying until domain disappears...")
Expand Down

0 comments on commit e08fee6

Please sign in to comment.