Skip to content

Commit

Permalink
address review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
czeslavo committed Mar 21, 2023
1 parent b5b3ac2 commit 88dad8f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/manager/telemetry/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ import (
gatewayv1beta1 "sigs.k8s.io/gateway-api/apis/v1beta1"
)

type mockGatewaysCounter struct{}
type mockGatewaysCounter int

func (m mockGatewaysCounter) GatewayClientsCount() int {
return 5
return int(m)
}

func TestCreateManager(t *testing.T) {
Expand Down Expand Up @@ -100,7 +100,7 @@ func TestCreateManager(t *testing.T) {
k8sclient,
dyn,
ctrlClient,
mockGatewaysCounter{},
mockGatewaysCounter(5),
payload,
reportValues,
func(t *testing.T, actualReport string) {
Expand Down Expand Up @@ -177,7 +177,7 @@ func TestCreateManager_GatewayDiscoverySpecifics(t *testing.T) {
k8sclient,
dyn,
ctrlClient,
mockGatewaysCounter{},
mockGatewaysCounter(5),
Payload{},
ReportValues{
GatewayServiceDiscoveryEnabled: tc.gatewayServiceDiscoveryEnabled,
Expand Down

0 comments on commit 88dad8f

Please sign in to comment.