diff --git a/internal/mode/static/state/graph/gatewayclass_test.go b/internal/mode/static/state/graph/gatewayclass_test.go index b90ac0fb54..a60da7eecc 100644 --- a/internal/mode/static/state/graph/gatewayclass_test.go +++ b/internal/mode/static/state/graph/gatewayclass_test.go @@ -167,14 +167,16 @@ func TestBuildGatewayClass(t *testing.T) { createValidNPValidator := func() *validationfakes.FakeGenericValidator { v := &validationfakes.FakeGenericValidator{} - v.ValidateEscapedStringNoVarExpansionReturns(nil) + v.ValidateServiceNameReturns(nil) + v.ValidateEndpointReturns(nil) return v } createInvalidNPValidator := func() *validationfakes.FakeGenericValidator { v := &validationfakes.FakeGenericValidator{} - v.ValidateEscapedStringNoVarExpansionReturns(errors.New("error")) + v.ValidateServiceNameReturns(errors.New("error")) + v.ValidateEndpointReturns(errors.New("error")) return v }