Skip to content

Commit

Permalink
chore: correct EntityGUID type to fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pranav-new-relic committed Feb 26, 2024
1 parent b4f4d56 commit cf4eab8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/notifications/destinations_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"net/http"
"testing"

"github.com/newrelic/newrelic-client-go/v2/pkg/common"
"github.com/stretchr/testify/assert"

"github.com/newrelic/newrelic-client-go/v2/pkg/ai"
Expand Down Expand Up @@ -146,7 +147,7 @@ func TestCreateDestination(t *testing.T) {
Auth: auth,
CreatedAt: timestamp,
ID: id,
GUID: guid,
GUID: common.EntityGUID(guid),

Check failure on line 150 in pkg/notifications/destinations_test.go

View workflow job for this annotation

GitHub Actions / test-unit

cannot use common.EntityGUID(guid) (value of type common.EntityGUID) as type EntityGUID in struct literal

Check failure on line 150 in pkg/notifications/destinations_test.go

View workflow job for this annotation

GitHub Actions / test-unit

cannot use common.EntityGUID(guid) (value of type common.EntityGUID) as type EntityGUID in struct literal
IsUserAuthenticated: false,
LastSent: timestamp,
Name: "test-notification-destination-1",
Expand Down Expand Up @@ -192,7 +193,7 @@ func TestGetDestinations(t *testing.T) {
Auth: auth,
CreatedAt: timestamp,
ID: id,
GUID: guid,
GUID: common.EntityGUID(guid),

Check failure on line 196 in pkg/notifications/destinations_test.go

View workflow job for this annotation

GitHub Actions / test-unit

cannot use common.EntityGUID(guid) (value of type common.EntityGUID) as type EntityGUID in struct literal

Check failure on line 196 in pkg/notifications/destinations_test.go

View workflow job for this annotation

GitHub Actions / test-unit

cannot use common.EntityGUID(guid) (value of type common.EntityGUID) as type EntityGUID in struct literal
IsUserAuthenticated: false,
LastSent: timestamp,
Name: "test-notification-destination-1",
Expand Down Expand Up @@ -247,7 +248,7 @@ func TestGetDestinationsByName(t *testing.T) {
Auth: auth,
CreatedAt: timestamp,
ID: id,
GUID: guid,
GUID: common.EntityGUID(guid),

Check failure on line 251 in pkg/notifications/destinations_test.go

View workflow job for this annotation

GitHub Actions / test-unit

cannot use common.EntityGUID(guid) (value of type common.EntityGUID) as type EntityGUID in struct literal

Check failure on line 251 in pkg/notifications/destinations_test.go

View workflow job for this annotation

GitHub Actions / test-unit

cannot use common.EntityGUID(guid) (value of type common.EntityGUID) as type EntityGUID in struct literal
IsUserAuthenticated: false,
LastSent: timestamp,
Name: "test-notification-destination-1",
Expand Down

0 comments on commit cf4eab8

Please sign in to comment.