Skip to content

Commit

Permalink
chore(tests): minor adjustment for entity (app) creation lag
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderblue committed May 28, 2024
1 parent da19f1f commit 13e57c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions newrelic/data_source_newrelic_entity_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"strconv"
"strings"
"testing"
"time"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
Expand Down Expand Up @@ -37,6 +38,8 @@ func TestAccNewRelicSingleQuotedEntityData_Basic(t *testing.T) {
resource.ParallelTest(t, resource.TestCase{
PreCheck: func() {
testAccSingleQuotedPreCheck(t)

time.Sleep(2 * time.Second)
},
Providers: testAccProviders,
Steps: []resource.TestStep{
Expand Down
2 changes: 1 addition & 1 deletion newrelic/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ func testAccApplicationsCleanup(t *testing.T) {

if err == nil {
deletedAppCount++
t.Logf("deleted application %d (%d/%d)", app.ID, deletedAppCount, len(applications))
t.Logf("deleted application %s (%d/%d)", app.Name, deletedAppCount, len(applications))
}
}
}
Expand Down

0 comments on commit 13e57c7

Please sign in to comment.