diff --git a/go/vt/vtorc/logic/tablet_discovery_test.go b/go/vt/vtorc/logic/tablet_discovery_test.go index cbb39bc8c71..07bcad80cbb 100644 --- a/go/vt/vtorc/logic/tablet_discovery_test.go +++ b/go/vt/vtorc/logic/tablet_discovery_test.go @@ -123,6 +123,14 @@ func TestParseClustersToWatch(t *testing.T) { in []string expected map[string]bool }{ + { + in: []string{}, + expected: map[string]bool{}, + }, + { + in: []string{""}, + expected: map[string]bool{}, + }, { in: []string{"test/"}, expected: map[string]bool{"test/": true}, @@ -132,6 +140,7 @@ func TestParseClustersToWatch(t *testing.T) { expected: map[string]bool{"test/-": true}, }, { + // confirm shards fetch from topo in: []string{keyspace}, expected: map[string]bool{ topoproto.KeyspaceShardString(keyspace, shard): true,