layer1: add namespace source counts
This commit is contained in:
@@ -63,6 +63,9 @@ func TestNamespaceManagerSnapshotAndGet(t *testing.T) {
|
||||
if summary.TotalNamespaces != 2 {
|
||||
t.Fatalf("expected summary total namespaces to be 2, got %d", summary.TotalNamespaces)
|
||||
}
|
||||
if summary.SourceCounts[NamespaceSourceWatcher] != 2 {
|
||||
t.Fatalf("expected watcher source count to be 2")
|
||||
}
|
||||
}
|
||||
|
||||
func TestNamespaceManagerUpsertIncrementsGeneration(t *testing.T) {
|
||||
@@ -473,6 +476,9 @@ func TestNamespaceManagerSummary(t *testing.T) {
|
||||
if !reflect.DeepEqual([]string{"router"}, summary.Subscribers) {
|
||||
t.Fatalf("expected router subscriber in summary")
|
||||
}
|
||||
if summary.SourceCounts[NamespaceSourceWatcher] != 2 {
|
||||
t.Fatalf("expected two watcher-sourced namespaces")
|
||||
}
|
||||
}
|
||||
|
||||
func TestLogNamespaceManagerSummaryWithNilLogger(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user