Skip to content

Commit

Permalink
fix acc test
Browse files Browse the repository at this point in the history
  • Loading branch information
ms-henglu committed Jun 18, 2021
1 parent 456bed3 commit b7653cd
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"fmt"
"testing"
"time"

"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/terraform"
Expand Down Expand Up @@ -70,14 +71,16 @@ func TestAccDataProtectionBackupInstancePostgreSQL_update(t *testing.T) {
},
data.ImportStep(),
{
Config: r.complete(data),
PreConfig: func() { time.Sleep(3 * time.Minute) },
Config: r.complete(data),
Check: resource.ComposeTestCheckFunc(
check.That(data.ResourceName).ExistsInAzure(r),
),
},
data.ImportStep(),
{
Config: r.basic(data),
PreConfig: func() { time.Sleep(3 * time.Minute) },
Config: r.basic(data),
Check: resource.ComposeTestCheckFunc(
check.That(data.ResourceName).ExistsInAzure(r),
),
Expand Down

0 comments on commit b7653cd

Please sign in to comment.