layer1: add live namespace counts

This commit is contained in:
Naeel
2026-04-26 10:59:39 +03:00
parent b93e720e12
commit 073f2c1504
4 changed files with 28 additions and 0 deletions
+6
View File
@@ -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.LiveNamespaces != 2 {
t.Fatalf("expected live namespaces to be 2, got %d", summary.LiveNamespaces)
}
if summary.SourceCounts[NamespaceSourceWatcher] != 2 {
t.Fatalf("expected watcher source count to be 2")
}
@@ -467,6 +470,9 @@ func TestNamespaceManagerSummary(t *testing.T) {
if summary.TotalNamespaces != 2 {
t.Fatalf("expected total namespaces 2, got %d", summary.TotalNamespaces)
}
if summary.LiveNamespaces != 1 {
t.Fatalf("expected one live namespace, got %d", summary.LiveNamespaces)
}
if summary.PhaseCounts[NamespacePhaseRegistering] != 1 {
t.Fatalf("expected one registering namespace")
}