From eab79e97529ff1a375cb40413c56bcf26ea6569d Mon Sep 17 00:00:00 2001 From: Tim Vaillancourt Date: Thu, 12 Dec 2024 23:36:00 +0100 Subject: [PATCH] more tests Signed-off-by: Tim Vaillancourt --- go/vt/vtorc/logic/tablet_discovery_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) 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,