mirror of
https://github.com/weaveworks/scope.git
synced 2026-05-09 02:36:52 +00:00
In unit tests, check counters
This commit is contained in:
@@ -22,9 +22,11 @@ func PruneNode(node report.Node) report.Node {
|
||||
node.Children.ForEach(func(child report.Node) {
|
||||
prunedChildren = prunedChildren.Add(PruneNode(child))
|
||||
})
|
||||
return report.MakeNode(
|
||||
prunedNode := report.MakeNode(
|
||||
node.ID).
|
||||
WithTopology(node.Topology).
|
||||
WithAdjacent(node.Adjacency...).
|
||||
WithChildren(prunedChildren)
|
||||
prunedNode.Counters = node.Counters
|
||||
return prunedNode
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user