Skip to content

Commit

Permalink
use custom.Type in test util function buildCustomEntityWithObject
Browse files Browse the repository at this point in the history
  • Loading branch information
randmonkey committed Jul 24, 2024
1 parent 1c2d5fe commit ecfecdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/dataplane/configfetcher/kongrawstate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (
"github.com/kong/kubernetes-ingress-controller/v3/internal/dataplane/kongstate"
)

func buildCustomEntityWithObject(entityType string, obj custom.Object) custom.Entity {
e := custom.NewEntityObject(custom.Type(entityType))
func buildCustomEntityWithObject(entityType custom.Type, obj custom.Object) custom.Entity {
e := custom.NewEntityObject(entityType)
e.SetObject(obj)
return e
}
Expand Down

0 comments on commit ecfecdf

Please sign in to comment.