Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Vaillancourt <[email protected]>
  • Loading branch information
timvaillancourt committed Dec 12, 2024
1 parent 4babcaf commit eab79e9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions go/vt/vtorc/logic/tablet_discovery_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand All @@ -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,
Expand Down

0 comments on commit eab79e9

Please sign in to comment.