From 74dfc93e5b0968bdb39dbc22e3dabdb09b45004f Mon Sep 17 00:00:00 2001 From: Tim Vaillancourt Date: Tue, 1 Oct 2024 19:32:52 +0200 Subject: [PATCH] update test for v19 Signed-off-by: Tim Vaillancourt --- go/vt/discovery/healthcheck_test.go | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/go/vt/discovery/healthcheck_test.go b/go/vt/discovery/healthcheck_test.go index 0ebf38e4e52..962200a6a3b 100644 --- a/go/vt/discovery/healthcheck_test.go +++ b/go/vt/discovery/healthcheck_test.go @@ -67,14 +67,12 @@ func TestNewVTGateHealthCheckFilters(t *testing.T) { defer func() { KeyspacesToWatch = nil tabletFilters = nil - tabletFilterTags = nil }() testCases := []struct { name string keyspacesToWatch []string tabletFilters []string - tabletFilterTags map[string]string expectedError string expectedFilterTypes []any }{ @@ -91,18 +89,6 @@ func TestNewVTGateHealthCheckFilters(t *testing.T) { keyspacesToWatch: []string{"ks1"}, expectedFilterTypes: []any{&FilterByKeyspace{}}, }, - { - name: "tabletFiltersAndTags", - tabletFilters: []string{"ks1|-80"}, - tabletFilterTags: map[string]string{"test": "true"}, - expectedFilterTypes: []any{&FilterByShard{}, &FilterByTabletTags{}}, - }, - { - name: "keyspacesToWatchAndTags", - tabletFilterTags: map[string]string{"test": "true"}, - keyspacesToWatch: []string{"ks1"}, - expectedFilterTypes: []any{&FilterByKeyspace{}, &FilterByTabletTags{}}, - }, { name: "failKeyspacesToWatchAndFilters", tabletFilters: []string{"ks1|-80"}, @@ -120,7 +106,6 @@ func TestNewVTGateHealthCheckFilters(t *testing.T) { t.Run(testCase.name, func(t *testing.T) { KeyspacesToWatch = testCase.keyspacesToWatch tabletFilters = testCase.tabletFilters - tabletFilterTags = testCase.tabletFilterTags filters, err := NewVTGateHealthCheckFilters() if testCase.expectedError != "" {