Skip to content

Commit

Permalink
chore: fix failing tests and more caused by the entities cleanup in c…
Browse files Browse the repository at this point in the history
…lient-go
  • Loading branch information
pranav-new-relic committed Jul 3, 2024
1 parent 6cc65d0 commit 8f71cf2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/mitchellh/go-homedir v1.1.0
github.com/newrelic/go-agent/v3 v3.30.0
github.com/newrelic/go-insights v1.0.3
github.com/newrelic/newrelic-client-go/v2 v2.37.0
github.com/newrelic/newrelic-client-go/v2 v2.39.1
github.com/stretchr/testify v1.9.0
golang.org/x/exp v0.0.0-20240325151524-a685a6edb6d8
)
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,8 @@ github.com/newrelic/go-agent/v3 v3.30.0 h1:ZXHCT/Cot4iIPwcegCZURuRQOsfmGA6wilW+S
github.com/newrelic/go-agent/v3 v3.30.0/go.mod h1:9utrgxlSryNqRrTvII2XBL+0lpofXbqXApvVWPpbzUg=
github.com/newrelic/go-insights v1.0.3 h1:zSNp1CEZnXktzSIEsbHJk8v6ZihdPFP2WsO/fzau3OQ=
github.com/newrelic/go-insights v1.0.3/go.mod h1:A20BoT8TNkqPGX2nS/Z2fYmKl3Cqa3iKZd4whzedCY4=
github.com/newrelic/newrelic-client-go/v2 v2.37.0 h1:Uq/FjtDhT+y2iSm/GctBaiHQeN6Wi6ClK6V4OQ44GLg=
github.com/newrelic/newrelic-client-go/v2 v2.37.0/go.mod h1:pDFY24/6iIMEbPIdowTRrRn9YYwkXc3j+B+XpTb4oF4=
github.com/newrelic/newrelic-client-go/v2 v2.39.1 h1:05b9E0bReE9RS00rB8DzD7F1Vxb8+dHMiV95H1TLToI=
github.com/newrelic/newrelic-client-go/v2 v2.39.1/go.mod h1:pDFY24/6iIMEbPIdowTRrRn9YYwkXc3j+B+XpTb4oF4=
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
github.com/oklog/run v1.0.0 h1:Ru7dDtJNOyC66gQ5dQmaCa0qIsAUFY3sFpK1Xk8igrw=
github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA=
Expand Down
4 changes: 3 additions & 1 deletion newrelic/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func testAccCreateEntity(t *testing.T, name string) {
}

retryErr := resource.RetryContext(context.Background(), 30*time.Second, func() *resource.RetryError {
entityResults, err := client.GetEntitySearchWithContext(context.Background(), entities.EntitySearchOptions{}, "", params, []entities.EntitySearchSortCriteria{})
entityResults, err := client.GetEntitySearchWithContext(context.Background(), entities.EntitySearchOptions{}, "", params, []entities.EntitySearchSortCriteria{}, []entities.SortCriterionWithDirection{})
if err != nil {
return resource.RetryableError(err)
}
Expand Down Expand Up @@ -321,6 +321,7 @@ func testAccSyntheticTestEntitiesCleanup(t *testing.T) {
Name: nameSuffix,
},
[]entities.EntitySearchSortCriteria{},
[]entities.SortCriterionWithDirection{},
)

if err != nil {
Expand Down Expand Up @@ -391,6 +392,7 @@ func testAccBrowserApplicationsCleanup(t *testing.T) {
Type: "APPLICATION",
},
[]entities.EntitySearchSortCriteria{},
[]entities.SortCriterionWithDirection{},
)

if err != nil {
Expand Down

0 comments on commit 8f71cf2

Please sign in to comment.