lntest: make sure standby nodes' edges are cleaned

This commit is contained in:
yyforyongyu committed 2024-11-11 20:54:10 +08:00
1 parent e7d0754615
commit a745d74e7c
3 files changed
+46 -5

No files matched your search

+12
View File
@@ -909,6 +909,18 @@ func (h *HarnessTest) validateNodeState(hn *node.HarnessNode) error {
"delete all of them properly", hn.Name())
}
// The number of public edges should be zero.
if hn.State.Edge.Public != 0 {
return fmt.Errorf("%s: found active public egdes, please "+
"clean them properly", hn.Name())
}
// The number of edges should be zero.
if hn.State.Edge.Total != 0 {
return fmt.Errorf("%s: found active edges, please "+
"clean them properly", hn.Name())
}
return nil
}