diff --git a/internal/xds/matcher/string_matcher_test.go b/internal/xds/matcher/string_matcher_test.go index b634aa04196..389963b94e9 100644 --- a/internal/xds/matcher/string_matcher_test.go +++ b/internal/xds/matcher/string_matcher_test.go @@ -67,13 +67,6 @@ func TestStringMatcherFromProto(t *testing.T) { }, wantErr: true, }, - { - desc: "invalid deprecated regex", - inputProto: &v3matcherpb.StringMatcher{ - MatchPattern: &v3matcherpb.StringMatcher_HiddenEnvoyDeprecatedRegex{}, - }, - wantErr: true, - }, { desc: "happy case exact", inputProto: &v3matcherpb.StringMatcher{ diff --git a/xds/internal/xdsclient/rds_test.go b/xds/internal/xdsclient/rds_test.go index 6d1f8588f2d..f5f906375c7 100644 --- a/xds/internal/xdsclient/rds_test.go +++ b/xds/internal/xdsclient/rds_test.go @@ -1146,7 +1146,7 @@ func (s) TestRoutesProtoToSlice(t *testing.T) { Headers: []*v3routepb.HeaderMatcher{ { Name: "th", - HeaderMatchSpecifier: &v3routepb.HeaderMatcher_HiddenEnvoyDeprecatedRegexMatch{}, + HeaderMatchSpecifier: &v3routepb.HeaderMatcher_StringMatch{}, }, }, },