layer1: add live namespace 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.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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user